summaryrefslogtreecommitdiff
path: root/src/shared/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/printf.c')
-rw-r--r--src/shared/printf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/printf.c b/src/shared/printf.c
index 496d5b8..b50d4ef 100644
--- a/src/shared/printf.c
+++ b/src/shared/printf.c
@@ -47,9 +47,9 @@ modifier_break:
break;
case 'x':
- unsigned int n = va_arg(argp, int);
+ unsigned long n = va_arg(argp, long);
size_t i = 4; // nibbles * 4
- while (n >> i && i < (sizeof(int) * 8))
+ while (n >> i && i < (sizeof(n) * 8))
i += 4;
if (i < pad_len * 4)