mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-19 07:14:14 +00:00
The C standard indicates that when processing the a conversion specifier "if the precision is zero *and* the # flag is not specified, no decimal- point character appears.". This means that __fmt needs to ensure that it prints the decimal-point character not only when the precision is non-0, but also when the # flag is specified - cosmopolitan currently does not. This patch fixes this, along with adding a few tests for this behaviour. |
||
---|---|---|
.. | ||
calls | ||
fmt | ||
intrin | ||
log | ||
mem | ||
nexgen32e | ||
proc | ||
runtime | ||
sock | ||
stdio | ||
str | ||
thread | ||
time | ||
tinymath | ||
x | ||
xed | ||
BUILD.mk |