mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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); | ^
This commit is contained in:
parent
a93a6a5459
commit
ffa6d9d614
@ -584,7 +584,7 @@ initable_init (GInitable *initable,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
s = g_snprintf (self->identifier, sizeof self->identifier, "%"G_GUINT64_FORMAT, identifier);
|
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 */
|
/* Start attempting to reap the child immediately */
|
||||||
|
Loading…
Reference in New Issue
Block a user