提交 f541fa17 编写于 作者: S Sean Barrett

Merge branch 'valgrind-fix' of https://github.com/rohit-n/stb

...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
// github:d26435 // github:d26435
// github:trex78 // github:trex78
// Jari Komppa (SI suffixes) // Jari Komppa (SI suffixes)
// Rohit Nirmal
// //
// LICENSE: // LICENSE:
// //
...@@ -1025,11 +1026,11 @@ STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(vsprintfcb)(STBSP_SPRINTFCB *callback, ...@@ -1025,11 +1026,11 @@ STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(vsprintfcb)(STBSP_SPRINTFCB *callback,
n64 = 0; n64 = 0;
} }
if ((fl & STBSP__TRIPLET_COMMA) == 0) { if ((fl & STBSP__TRIPLET_COMMA) == 0) {
while (n) { do {
s -= 2; s -= 2;
*(stbsp__uint16 *)s = *(stbsp__uint16 *)&stbsp__digitpair[(n % 100) * 2]; *(stbsp__uint16 *)s = *(stbsp__uint16 *)&stbsp__digitpair[(n % 100) * 2];
n /= 100; n /= 100;
} } while (n);
} }
while (n) { while (n) {
if ((fl & STBSP__TRIPLET_COMMA) && (l++ == 3)) { if ((fl & STBSP__TRIPLET_COMMA) && (l++ == 3)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册