summaryrefslogtreecommitdiff
path: root/src/plugins/spell/spell.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-11-19 22:20:48 +0100
committerSébastien Helleu <flashcode@flashtux.org>2020-11-19 22:20:48 +0100
commita2266e4e3f981d294800a877c5808362841c91b5 (patch)
tree847cba1d930a0b793f3abc16459e37d15118fe4a /src/plugins/spell/spell.c
parent214f4f66d9077c478ae62c7a8061f443db526ef2 (diff)
downloadweechat-a2266e4e3f981d294800a877c5808362841c91b5.zip
core: add missing cast to unsigned char on first argument to function isdigit
Diffstat (limited to 'src/plugins/spell/spell.c')
-rw-r--r--src/plugins/spell/spell.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/spell/spell.c b/src/plugins/spell/spell.c
index e9278e995..821fdcdd7 100644
--- a/src/plugins/spell/spell.c
+++ b/src/plugins/spell/spell.c
@@ -679,23 +679,23 @@ spell_skip_color_codes (char **string, char **result)
/* IRC color code */
weechat_string_dyn_concat (result, *string, 1);
(*string)++;
- if (isdigit (*string[0]))
+ if (isdigit ((unsigned char)*string[0]))
{
/* foreground */
weechat_string_dyn_concat (result, *string, 1);
(*string)++;
- if (isdigit (*string[0]))
+ if (isdigit ((unsigned char)*string[0]))
{
weechat_string_dyn_concat (result, *string, 1);
(*string)++;
}
}
- if ((*string[0] == ',') && (isdigit (*string[1])))
+ if ((*string[0] == ',') && (isdigit ((unsigned char)*string[1])))
{
/* background */
weechat_string_dyn_concat (result, *string, 1);
(*string)++;
- if (isdigit (*string[0]))
+ if (isdigit ((unsigned char)*string[0]))
{
weechat_string_dyn_concat (result, *string, 1);
(*string)++;