From 3be65f1c0c5e605bcc3d75a6466328ddb9e68945 Mon Sep 17 00:00:00 2001 From: Fabian Giesen Date: Wed, 7 Jul 2021 15:43:47 -0700 Subject: [PATCH] stb_sprintf: Small simplification This was intentional but we might as well just set cs=0 directly here. Fixes issue #997. --- stb_sprintf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_sprintf.h b/stb_sprintf.h index 46369d5..0271568 100644 --- a/stb_sprintf.h +++ b/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; } }