Merge pull request #36 from terickson001/printf_width_fix
Fixed printf variable width
This commit is contained in:
commit
296198c81b
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);
|
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 {
|
||||||
|
|
Loading…
Reference in New Issue