[glib: 3/9] Fix several signedness warnings in gio/glib-compile-schemas.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 3/9] Fix several signedness warnings in gio/glib-compile-schemas.c
- Date: Wed, 10 Feb 2021 20:01:09 +0000 (UTC)
commit 93f3831ed30068a9da9b5f4a1e11b26abfe6f6f1
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Tue Nov 17 22:14:26 2020 +0100
Fix several signedness warnings in gio/glib-compile-schemas.c
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]