summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Cuoq <cuoq@trust-in-soft.com>2020-07-21 17:54:26 +0200
committerPascal Cuoq <cuoq@trust-in-soft.com>2020-07-21 17:54:26 +0200
commit1962ba7de30b999a9d08c716fe588b8e562101e3 (patch)
tree8241dc087b51ad3374a079271d62318badcefc26
parent024e835f4cfb2aacf420d9a330ddbcf5c8dd12d2 (diff)
downloadjson-c-1962ba7de30b999a9d08c716fe588b8e562101e3.tar.gz
Fixes #645
-rw-r--r--json_tokener.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json_tokener.c b/json_tokener.c
index 63e02a1..6527270 100644
--- a/json_tokener.c
+++ b/json_tokener.c
@@ -430,7 +430,7 @@ struct json_object *json_tokener_parse_ex(struct json_tokener *tok, const char *
{
char inf_char = *str;
if (!(tok->flags & JSON_TOKENER_STRICT))
- inf_char = tolower((int)*str);
+ inf_char = tolower((unsigned char)*str);
if (inf_char != _json_inf_str[tok->st_pos])
{
tok->err = json_tokener_error_parse_unexpected;