Browse Source

Add cast to int on tolower() to fix warnings about array subscripts.

tags/json-c-0.13-20171207
Eric Haszlakiewicz 7 years ago
parent
commit
0e7ec2ffcd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      json_tokener.c

+ 1
- 1
json_tokener.c View File

@@ -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;


Loading…
Cancel
Save