summaryrefslogtreecommitdiff
path: root/src/libmowgli/ext/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmowgli/ext/json.c')
-rw-r--r--src/libmowgli/ext/json.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libmowgli/ext/json.c b/src/libmowgli/ext/json.c
index 3e273a4..0470463 100644
--- a/src/libmowgli/ext/json.c
+++ b/src/libmowgli/ext/json.c
@@ -1179,12 +1179,12 @@ lex_char(mowgli_json_parse_t *parse, char c)
case ',': lex_easy(parse, TS_VALUE_SEP); return false;
}
- if ((c == '-') || (c == '.') || isdigit(c))
+ if ((c == '-') || (c == '.') || isdigit((unsigned char)c))
{
parse->lex = LEX_NUMBER;
return true;
}
- else if (isalpha(c))
+ else if (isalpha((unsigned char)c))
{
parse->lex = LEX_IDENTIFIER;
return true;
@@ -1194,7 +1194,7 @@ lex_char(mowgli_json_parse_t *parse, char c)
parse->lex = LEX_STRING;
return false;
}
- else if (isspace(c))
+ else if (isspace((unsigned char)c))
{
return false;
}
@@ -1248,7 +1248,7 @@ lex_char(mowgli_json_parse_t *parse, char c)
case LEX_NUMBER:
- if ((c == '-') || (c == '.') || isdigit(c) || (toupper(c) == 'E'))
+ if ((c == '-') || (c == '.') || isdigit((unsigned char)c) || (toupper((unsigned char)c) == 'E'))
{
lex_append(parse, c);
return false;
@@ -1263,7 +1263,7 @@ lex_char(mowgli_json_parse_t *parse, char c)
case LEX_IDENTIFIER:
- if (isalpha(c))
+ if (isalpha((unsigned char)c))
{
lex_append(parse, c);
return false;