mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
7f7c29db5e
commit
970a466c40
1 changed files with 1 additions and 0 deletions
|
|
@ -908,6 +908,7 @@ fp_common:
|
|||
} else
|
||||
cp = (ch >= 'a') ? "inf" : "INF";
|
||||
size = 3;
|
||||
flags &= ~ZEROPAD;
|
||||
break;
|
||||
}
|
||||
flags |= FPT;
|
||||
|
|
|
|||
Loading…
Reference in a new issue