diff options
-rw-r--r-- | src/lib9/fmt/fltfmt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib9/fmt/fltfmt.c b/src/lib9/fmt/fltfmt.c index 2e63c84a..ce56e8ee 100644 --- a/src/lib9/fmt/fltfmt.c +++ b/src/lib9/fmt/fltfmt.c @@ -346,7 +346,10 @@ __efgfmt(Fmt *fmt) int pad, point, prec, realchr, sign, sufwid, ucase, wid, z1, z2; Rune r, *rs, *rt; - f = va_arg(fmt->args, double); + if(f->flags&FmtLong) + f = va_arg(fmt->args, long double); + else + f = va_arg(fmt->args, double); /* * extract formatting flags |