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 năm trước cách đây
mục cha
commit
3be65f1c0c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
             }
          }