From 407ddb4350a32115d9b9ded64d3c79d7c85b1790 Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Thu, 30 Nov 2023 13:59:13 +0000 Subject: [PATCH] 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. --- json_pointer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json_pointer.c b/json_pointer.c index 0ac8aaa..6e5609d 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; }