mirror of
https://github.com/Ed94/metadesk.git
synced 2026-11-29 09:03:22 -08:00
get stb_sprintf working for MD_String8s
This commit is contained in:
1 parent
d0717e3b5f
commit
5358883431
3 files changed
+6
-7
No files matched your search
@@ -583,13 +583,11 @@ cl = lg; \
|
||||
MD_String8 str = va_arg(va, MD_String8);
|
||||
|
||||
//- rjf: get string length
|
||||
s = (char *)str.str;
|
||||
sn = (const char *)(str.str + str.size);
|
||||
l = str.size;
|
||||
|
||||
//- rjf: clamp to precision
|
||||
if (l > (stbsp__uint32)pr)
|
||||
{
|
||||
l = pr;
|
||||
}
|
||||
lead[0] = 0;
|
||||
tail[0] = 0;
|
||||
pr = 0;
|
||||
|
||||
Reference in new issue
Block a user