mirror of
https://github.com/nothings/stb
synced 2024-12-15 04:22:35 +03:00
stb_sprintf: fix unaligned digitpair[], fix some signed-right-shifts
This commit is contained in:
parent
82310cc5ff
commit
9643f6bd98
@ -1663,7 +1663,7 @@ static stbsp__int32 stbsp__real_to_str(char const **start, stbsp__uint32 *len, c
|
||||
d = value;
|
||||
STBSP__COPYFP(bits, d);
|
||||
expo = (stbsp__int32)((bits >> 52) & 2047);
|
||||
ng = (stbsp__int32)((stbsp__int64) bits >> 63);
|
||||
ng = (stbsp__int32)((stbsp__uint64) bits >> 63);
|
||||
if (ng)
|
||||
d = -d;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user