summaryrefslogtreecommitdiff
path: root/json_tokener.c
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2017-12-05 04:29:36 +0000
committerEric Haszlakiewicz <erh+git@nimenees.com>2017-12-05 04:29:36 +0000
commit0e7ec2ffcda6591edb0475da64971b737aa5db6f (patch)
tree441612601d6597eda5e614877bca9f828738fea3 /json_tokener.c
parentaedd36ac8b1254229c07e280164c477549c2f89f (diff)
downloadjson-c-0e7ec2ffcda6591edb0475da64971b737aa5db6f.tar.gz
Add cast to int on tolower() to fix warnings about array subscripts.
Diffstat (limited to 'json_tokener.c')
-rw-r--r--json_tokener.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json_tokener.c b/json_tokener.c
index 416058d..620468e 100644
--- a/json_tokener.c
+++ b/json_tokener.c
@@ -403,7 +403,7 @@ struct json_object* json_tokener_parse_ex(struct json_tokener *tok,
{
char inf_char = *str;
if (!(tok->flags & JSON_TOKENER_STRICT))
- inf_char = tolower(*str);
+ inf_char = tolower((int)*str);
if (inf_char != _json_inf_str[tok->st_pos])
{
tok->err = json_tokener_error_parse_unexpected;