Explorar o código

stb_sprintf: Small simplification

This was intentional but we might as well just set cs=0
directly here.

Fixes issue #997.
Fabian Giesen %!s(int64=4) %!d(string=hai) anos
pai
achega
3be65f1c0c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      stb_sprintf.h

+ 1 - 1
stb_sprintf.h

@@ -1022,7 +1022,7 @@ STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(vsprintfcb)(STBSP_SPRINTFCB *callback,
             lead[0] = 0;
             if (pr == 0) {
                l = 0;
-               cs = (((l >> 4) & 15)) << 24;
+               cs = 0;
                goto scopy;
             }
          }