浏览代码

stb_sprintf: Small simplification

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

Fixes issue #997.
Fabian Giesen 4 年之前
父节点
当前提交
3be65f1c0c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
             }
          }