From: Eric Haszlakiewicz Date: Tue, 5 Dec 2017 04:29:36 +0000 (+0000) Subject: Add cast to int on tolower() to fix warnings about array subscripts. X-Git-Tag: json-c-0.13-20171207~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e7ec2ffcda6591edb0475da64971b737aa5db6f;p=thirdparty%2Fjson-c.git Add cast to int on tolower() to fix warnings about array subscripts. --- diff --git a/json_tokener.c b/json_tokener.c index 416058d4..620468e4 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;