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
The library makes various assumptions about the size of primitive types.
In particular, it assumes that sizeof(int) == 4.
It would be nice to be more standard and respect the actual int size of the system, as well as have better checks for the proper size to use for the 'j' 'z' 't'.
'z' now checks for the wrong type -- prdiff_t rather than size_t; and 'j' checks for 'size_t' rather than 'intmax_t', in order to avoid including more standard headers:
The library makes various assumptions about the size of primitive types.
In particular, it assumes that sizeof(int) == 4.
It would be nice to be more standard and respect the actual int size of the system, as well as have better checks for the proper size to use for the 'j' 'z' 't'.
'z' now checks for the wrong type -- prdiff_t rather than size_t; and 'j' checks for 'size_t' rather than 'intmax_t', in order to avoid including more standard headers:
stb/stb_sprintf.h
Lines 543 to 555 in f056911
The text was updated successfully, but these errors were encountered: