From: Eric Haszlakiewicz Date: Thu, 30 Nov 2023 13:59:13 +0000 (+0000) Subject: Issue #842 - fix one particular sign conversion warning. X-Git-Tag: json-c-0.18-20240915~19 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=407ddb4350a32115d9b9ded64d3c79d7c85b1790;p=thirdparty%2Fjson-c.git Issue #842 - fix one particular sign conversion warning. There are many others that show up if we were to add -Wsign-conversions, but this is the only one using a literal constant. --- diff --git a/json_pointer.c b/json_pointer.c index 0ac8aaaa..6e5609d7 100644 --- a/json_pointer.c +++ b/json_pointer.c @@ -231,7 +231,7 @@ int json_pointer_get_internal(struct json_object *obj, const char *path, res->parent = NULL; res->obj = obj; res->key_in_parent = NULL; - res->index_in_parent = -1; + res->index_in_parent = UINT32_MAX; return 0; }