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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169355

View File

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