mirror of
https://github.com/json-c/json-c.git
synced 2026-03-24 15:39:07 +08:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user