From a27e577c3eb38a2f40d4c55f37c8a58d6a750397 Mon Sep 17 00:00:00 2001 From: jarikomppa Date: Mon, 5 Dec 2016 14:56:35 +0200 Subject: [PATCH] The Si prefixes for mega, giga and tera are upper case (lower case m is not mega but milli) --- stb_sprintf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_sprintf.h b/stb_sprintf.h index 23de7e4..0be456e 100644 --- a/stb_sprintf.h +++ b/stb_sprintf.h @@ -555,7 +555,7 @@ STBSP__PUBLICDEF int STB_SPRINTF_DECORATE( vsprintfcb )( STBSP_SPRINTFCB * callb pr = 0; // handle k,m,g,t - if (fl&STBSP__METRIC_SUFFIX) { tail[0]=1; tail[1]=' '; { if (fl>>24) { tail[2]="_kmgt"[fl>>24]; tail[0]=2; } } }; + if (fl&STBSP__METRIC_SUFFIX) { tail[0]=1; tail[1]=' '; { if (fl>>24) { tail[2]="_kMGT"[fl>>24]; tail[0]=2; } } }; flt_lead: // get the length that we copied