[glib: 4/11] Fix signedness warning in gio/gsubprocess.c:initable_init()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 4/11] Fix signedness warning in gio/gsubprocess.c:initable_init()
- Date: Wed, 13 Jan 2021 11:50:54 +0000 (UTC)
commit ffa6d9d614a25f5e88719815a6a6d6624fc632d8
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Tue Nov 17 00:54:33 2020 +0100
Fix signedness warning in gio/gsubprocess.c:initable_init()
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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]