From c5a891a29d1d4f946181f6699bcf7f6fe35b43e6 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 12 Apr 2022 14:10:08 +0100 Subject: 50049: care with signed characters Some signed-to-unsigned casts needed for a couple of cases of pointers used as indices. --- Src/prompt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/prompt.c') diff --git a/Src/prompt.c b/Src/prompt.c index 738c7fc7a..092de63a4 100644 --- a/Src/prompt.c +++ b/Src/prompt.c @@ -1666,7 +1666,7 @@ match_colour(const char **teststrp, int is_fg, int colour) tc = TCBGCOLOUR; } if (teststrp) { - if (**teststrp == '#' && isxdigit((*teststrp)[1])) { + if (**teststrp == '#' && isxdigit(STOUC((*teststrp)[1]))) { struct color_rgb color; char *end; zlong col = zstrtol(*teststrp+1, &end, 16); -- cgit 1.4.1