summaryrefslogtreecommitdiff
path: root/extra/config/symbol.c
diff options
context:
space:
mode:
Diffstat (limited to 'extra/config/symbol.c')
-rw-r--r--extra/config/symbol.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/extra/config/symbol.c b/extra/config/symbol.c
index 7ec2ff48b..f2d0015de 100644
--- a/extra/config/symbol.c
+++ b/extra/config/symbol.c
@@ -404,12 +404,12 @@ bool sym_string_valid(struct symbol *sym, const char *str)
ch = *str++;
if (ch == '-')
ch = *str++;
- if (!isdigit(ch))
+ if (!isdigit((int)ch))
return false;
if (ch == '0' && *str != 0)
return false;
while ((ch = *str++)) {
- if (!isdigit(ch))
+ if (!isdigit((int)ch))
return false;
}
return true;
@@ -418,7 +418,7 @@ bool sym_string_valid(struct symbol *sym, const char *str)
str += 2;
ch = *str++;
do {
- if (!isxdigit(ch))
+ if (!isxdigit((int)ch))
return false;
} while ((ch = *str++));
return true;