From 9643f6bd98be22e11cfcb82866edc60827b6c17d Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Thu, 7 Feb 2019 08:45:19 -0800 Subject: [PATCH] stb_sprintf: fix unaligned digitpair[], fix some signed-right-shifts --- stb_sprintf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_sprintf.h b/stb_sprintf.h index 952f7b5..d5e5d87 100644 --- a/stb_sprintf.h +++ b/stb_sprintf.h @@ -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;