diff options
author | Peter Stephenson <p.stephenson@samsung.com> | 2022-04-12 14:10:08 +0100 |
---|---|---|
committer | Peter Stephenson <p.stephenson@samsung.com> | 2022-04-25 17:51:59 +0100 |
commit | c5a891a29d1d4f946181f6699bcf7f6fe35b43e6 (patch) | |
tree | ecaaae46a3a81e9d183e06cd8b353d9f2ebf1dd3 /Src/prompt.c | |
parent | 09ad15b9869c4a6f715167ae3caa7210a1f906ce (diff) | |
download | zsh-c5a891a29d1d4f946181f6699bcf7f6fe35b43e6.tar.gz zsh-c5a891a29d1d4f946181f6699bcf7f6fe35b43e6.tar.xz zsh-c5a891a29d1d4f946181f6699bcf7f6fe35b43e6.zip |
50049: care with signed characters
Some signed-to-unsigned casts needed for a couple of cases of pointers used as indices.
Diffstat (limited to 'Src/prompt.c')
-rw-r--r-- | Src/prompt.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |