From 4e57894e8506f27844fc0e6353475a0b61fd7807 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 30 Jun 2023 13:19:32 +0000 Subject: Get rid of some warnings with GCC 10, from Thomas Klausner. --- format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'format.c') diff --git a/format.c b/format.c index 8cbf0a64..e383a141 100644 --- a/format.c +++ b/format.c @@ -3813,7 +3813,7 @@ format_build_modifiers(struct format_expand_state *es, const char **s, argc = 0; /* Single argument with no wrapper character. */ - if (!ispunct(cp[1]) || cp[1] == '-') { + if (!ispunct((u_char)cp[1]) || cp[1] == '-') { end = format_skip(cp + 1, ":;"); if (end == NULL) break; -- cgit v1.2.3