From 5cbd1f2960662c18b1d2b2dac7352f2b5b1ba776 Mon Sep 17 00:00:00 2001 From: Yossi Gottlieb Date: Thu, 1 Jun 2023 19:03:24 +0300 Subject: Add -Werror as a default. (#1193) --- hiredis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hiredis.c') diff --git a/hiredis.c b/hiredis.c index 9d8a500..446ceb1 100644 --- a/hiredis.c +++ b/hiredis.c @@ -392,12 +392,12 @@ int redisvFormatCommand(char **target, const char *format, va_list ap) { while (*_p != '\0' && strchr(flags,*_p) != NULL) _p++; /* Field width */ - while (*_p != '\0' && isdigit(*_p)) _p++; + while (*_p != '\0' && isdigit((int) *_p)) _p++; /* Precision */ if (*_p == '.') { _p++; - while (*_p != '\0' && isdigit(*_p)) _p++; + while (*_p != '\0' && isdigit((int) *_p)) _p++; } /* Copy va_list before consuming with va_arg */ -- cgit v1.2.3