diff --git a/contrib/debug/flags.c b/contrib/debug/flags.c index 044221ea4..669bd090c 100644 --- a/contrib/debug/flags.c +++ b/contrib/debug/flags.c @@ -439,7 +439,7 @@ int main(int argc, char **argv) /* stop at the end of the number and trim any C suffix like "UL" */ err = value; while (*err == '-' || *err == '+' || - (isalnum(*err) && toupper(*err) != 'U' && toupper(*err) != 'L')) + (isalnum((unsigned char)*err) && toupper((unsigned char)*err) != 'U' && toupper((unsigned char)*err) != 'L')) err++; if (err) *err = 0;