aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar gingerBill 2018-05-20 16:03:59 +0100
committerGravatar GitHub 2018-05-20 16:03:59 +0100
commit296198c81b27778f0bda6b997ae377b7ec1ab98f (patch)
treebd798ab9282ef49a05ba38db81fb4d65393d80fb
parentMerge pull request #34 from terickson001/memcopy_fix (diff)
parentFixed printf variable width (diff)
Merge pull request #36 from terickson001/printf_width_fix
Fixed printf variable width
-rw-r--r--gb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gb.h b/gb.h
index 25cc1d9..edb791d 100644
--- a/gb.h
+++ b/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 {