Fixed printf variable width

This commit is contained in:
Tyler Erickson 2018-05-19 20:15:50 -07:00
parent 5fb5aad99e
commit 911b785e19
1 changed files with 2 additions and 2 deletions

4
gb.h
View File

@ -8483,9 +8483,9 @@ gb_no_inline isize gb_snprintf_va(char *text, isize max_len, char const *fmt, va
int width = va_arg(va, int); int width = va_arg(va, int);
if (width < 0) { if (width < 0) {
info.flags |= gbFmt_Minus; info.flags |= gbFmt_Minus;
info.width = -info.width; info.width = -width;
} else { } else {
info.width = -info.width; info.width = width;
} }
fmt++; fmt++;
} else { } else {