Browse Source

stb_sprintf: Small simplification

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

Fixes issue #997.
Fabian Giesen 4 years ago
parent
commit
3be65f1c0c
1 changed files with 1 additions and 1 deletions
  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;
             }
          }