long double

This commit is contained in:
rsc 2006-06-26 00:05:10 +00:00
parent 651ababc74
commit 66cf8a3904

View file

@ -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