From ffa6d9d614a25f5e88719815a6a6d6624fc632d8 Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Tue, 17 Nov 2020 00:54:33 +0100 Subject: [PATCH] Fix signedness warning in gio/gsubprocess.c:initable_init() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gio/gsubprocess.c: In function ‘initable_init’: gio/gsubprocess.c:587:26: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 587 | g_assert (0 < s && s < sizeof self->identifier); | ^ --- gio/gsubprocess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gsubprocess.c b/gio/gsubprocess.c index 2ff8457df..665d729ed 100644 --- a/gio/gsubprocess.c +++ b/gio/gsubprocess.c @@ -584,7 +584,7 @@ initable_init (GInitable *initable, #endif s = g_snprintf (self->identifier, sizeof self->identifier, "%"G_GUINT64_FORMAT, identifier); - g_assert (0 < s && s < sizeof self->identifier); + g_assert (0 < s && (gsize) s < sizeof self->identifier); } /* Start attempting to reap the child immediately */