From 1962ba7de30b999a9d08c716fe588b8e562101e3 Mon Sep 17 00:00:00 2001 From: Pascal Cuoq Date: Tue, 21 Jul 2020 17:54:26 +0200 Subject: [PATCH] Fixes #645 --- json_tokener.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json_tokener.c b/json_tokener.c index 63e02a14..6527270d 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; -- 2.39.5