We should never zero-pad INF or NaN (yielding silly strings like "00inf")

even if the programmer asks for zero padding.
This commit is contained in:
David Schultz 2007-05-08 03:08:28 +00:00
parent 7f7c29db5e
commit 970a466c40

View File

@ -908,6 +908,7 @@ reswitch: switch (ch) {
} else
cp = (ch >= 'a') ? "inf" : "INF";
size = 3;
flags &= ~ZEROPAD;
break;
}
flags |= FPT;