Fixed printf variable width
This commit is contained in:
parent
5fb5aad99e
commit
911b785e19
4
gb.h
4
gb.h
|
@ -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);
|
||||
if (width < 0) {
|
||||
info.flags |= gbFmt_Minus;
|
||||
info.width = -info.width;
|
||||
info.width = -width;
|
||||
} else {
|
||||
info.width = -info.width;
|
||||
info.width = width;
|
||||
}
|
||||
fmt++;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue