diff options
author | <andrewsh@debian.org> | 2016-07-05 15:42:49 +0200 |
---|---|---|
committer | <andrewsh@debian.org> | 2016-07-05 15:42:49 +0200 |
commit | 81283c2ef8dc8b094b54e1b8ae2abf99726db9ce (patch) | |
tree | ee8ef9012692d12343c50fca9245ba567482cb49 /src/libmowgli/ext/json.c | |
parent | 97988110a1e3cb58b0c958b78e8a2364b980953b (diff) |
Update to the latest upstream version.
Diffstat (limited to 'src/libmowgli/ext/json.c')
-rw-r--r-- | src/libmowgli/ext/json.c | 10 |
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; |