diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2022-10-11 11:47:03 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2022-10-11 11:47:03 +0100 |
commit | d370ce7ed63ae53c828586f30e6b3f740bc3cbe3 (patch) | |
tree | 124e00fd8b6a667a6caa56157c5a58526b3bd017 /json-glib/json-path.c | |
parent | cc294f1ff54fea728df97e0cb6bafc34a075af8d (diff) | |
download | json-glib-d370ce7ed63ae53c828586f30e6b3f740bc3cbe3.tar.gz |
Fix sign comparison warnings
When running with `-Wsign-compare` we're raising a lot of
signed/unsigned comparison warnings.
Diffstat (limited to 'json-glib/json-path.c')
-rw-r--r-- | json-glib/json-path.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/json-glib/json-path.c b/json-glib/json-path.c index 86fe97f..a41d9b8 100644 --- a/json-glib/json-path.c +++ b/json-glib/json-path.c @@ -199,7 +199,7 @@ struct _PathNode union { /* JSON_PATH_NODE_CHILD_ELEMENT */ - int element_index; + guint element_index; /* JSON_PATH_NODE_CHILD_MEMBER */ char *member_name; @@ -302,7 +302,7 @@ json_path_foreach_print (gpointer data, break; case JSON_PATH_NODE_CHILD_ELEMENT: - g_string_append_printf (buf, "<element '%d'", cur_node->data.element_index); + g_string_append_printf (buf, "<element '%u'", cur_node->data.element_index); break; case JSON_PATH_NODE_RECURSIVE_DESCENT: @@ -781,7 +781,7 @@ walk_path_node (GList *path, { JsonArray *array = json_node_get_array (root); GList *members, *l; - int i; + guint i; members = json_array_get_elements (array); for (l = members, i = 0; l != NULL; l = l->next, i += 1) |