diff options
author | rsc <devnull@localhost> | 2006-06-26 00:05:10 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-06-26 00:05:10 +0000 |
commit | 66cf8a390447d8d09d2f4653fdd334f4c145f50f (patch) | |
tree | 12de0d4440f0f53909cd01f543a6dfbe9338bdac /src/lib9 | |
parent | 651ababc7475a05d9719065763399da5b58bfb76 (diff) | |
download | plan9port-66cf8a390447d8d09d2f4653fdd334f4c145f50f.tar.gz plan9port-66cf8a390447d8d09d2f4653fdd334f4c145f50f.tar.bz2 plan9port-66cf8a390447d8d09d2f4653fdd334f4c145f50f.zip |
long double
Diffstat (limited to 'src/lib9')
-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 |