From 93f3831ed30068a9da9b5f4a1e11b26abfe6f6f1 Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Tue, 17 Nov 2020 22:14:26 +0100 Subject: [PATCH] Fix several signedness warnings in gio/glib-compile-schemas.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gio/glib-compile-schemas.c: In function ‘key_state_set_range’: gio/glib-compile-schemas.c:376:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 376 | for (i = 0; i < G_N_ELEMENTS (table); i++) | ^ gio/glib-compile-schemas.c: In function ‘key_state_serialise’: gio/glib-compile-schemas.c:714:29: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 714 | for (i = 0; i < size / sizeof (guint32); i++) | ^ --- gio/glib-compile-schemas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/glib-compile-schemas.c b/gio/glib-compile-schemas.c index 788812048..84b82baa9 100644 --- a/gio/glib-compile-schemas.c +++ b/gio/glib-compile-schemas.c @@ -363,7 +363,7 @@ key_state_set_range (KeyState *state, { 'd', "-inf", "inf" }, }; gboolean type_ok = FALSE; - gint i; + gsize i; if (state->minimum) { @@ -705,7 +705,7 @@ key_state_serialise (KeyState *state) guint32 *words; gpointer data; gsize size; - gint i; + gsize i; data = state->strinfo->str; size = state->strinfo->len;