diff options
author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2017-12-05 04:29:36 +0000 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2017-12-05 04:29:36 +0000 |
commit | 0e7ec2ffcda6591edb0475da64971b737aa5db6f (patch) | |
tree | 441612601d6597eda5e614877bca9f828738fea3 /json_tokener.c | |
parent | aedd36ac8b1254229c07e280164c477549c2f89f (diff) | |
download | json-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.c | 2 |
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; |