Преглед на файлове

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).
Doj преди 4 години
родител
ревизия
0755e6a76f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      stb_sprintf.h

+ 1 - 1
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);                       \