From 0755e6a76fa3a32e6c9f46a396b437bacf09236c Mon Sep 17 00:00:00 2001 From: Doj Date: Wed, 27 Jan 2021 20:39:02 +0300 Subject: [PATCH] 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). --- stb_sprintf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_sprintf.h b/stb_sprintf.h index 7396760..3152ff3 100644 --- a/stb_sprintf.h +++ b/stb_sprintf.h @@ -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); \