summaryrefslogtreecommitdiff
path: root/src/malloc_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/malloc_io.c')
-rw-r--r--src/malloc_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/malloc_io.c b/src/malloc_io.c
index 7bdc13f9..dd882651 100644
--- a/src/malloc_io.c
+++ b/src/malloc_io.c
@@ -362,7 +362,7 @@ malloc_vsnprintf(char *str, size_t size, const char *format, va_list ap) {
} \
} while (0)
#define GET_ARG_NUMERIC(val, len) do { \
- switch (len) { \
+ switch ((unsigned char)len) { \
case '?': \
val = va_arg(ap, int); \
break; \