stb_sprintf: fix stbsp_ddtoS64 macro

Should use xh argument not ph (which is the name of the
variable that it actually gets instantiated with the
one time it is used).
This commit is contained in:
Doj 2021-01-27 20:39:02 +03:00 committed by Fabian Giesen
parent 04007a071c
commit 067655993a
1 changed files with 1 additions and 1 deletions

View File

@ -1597,7 +1597,7 @@ static stbsp__uint64 const stbsp__powten[20] = {
#define stbsp__ddtoS64(ob, xh, xl) \
{ \
double ahi = 0, alo, vh, t; \
ob = (stbsp__int64)ph; \
ob = (stbsp__int64)xh; \
vh = (double)ob; \
ahi = (xh - vh); \
t = (ahi - xh); \