You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the space and + flags both appear, the space flag is ignored.
STB vs standard-conforming:
printf("%+ 10i", 1); // " 1" vs " +1"
printf("% +10i", 1); // " 1" vs " +1"
printf("%+ 10f", 1.0); // " 1.000000" vs " +1.000000"
printf("% +10f", 1.0); // " 1.000000" vs " +1.000000"
printf("%+ 10g", 1.0); // " 1" vs " +1"
printf("% +10g", 1.0); // " 1" vs " +1"
printf("%+ 10a", 1.0); // " 0x1.000000p+0" vs " +0x1.000000p+0"
printf("% +10a", 1.0); // " 0x1.000000p+0" vs " +0x1.000000p+0"
Fix: the stbsp__lead_sign() function should change the order of its checks: first negative, then plus, then space (now it checks negative, space, plus):
The standard says:
STB vs standard-conforming:
Fix: the stbsp__lead_sign() function should change the order of its checks: first negative, then plus, then space (now it checks negative, space, plus):
stb/stb_sprintf.h
Lines 294 to 307 in f056911
The text was updated successfully, but these errors were encountered: