mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 07:38:54 +02:00
Fixing signedness in glib/gvariant-core.c
glib/gvariant-core.c: In function ‘g_variant_ensure_size’: glib/gvariant-core.c:339:19: error: comparison of integer expressions of different signedness: ‘gsize’ {aka ‘long unsigned int’} and ‘long int’ [-Werror=sign-compare] if (value->size == (gssize) -1) ^~
This commit is contained in:
@@ -336,7 +336,7 @@ g_variant_ensure_size (GVariant *value)
|
|||||||
{
|
{
|
||||||
g_assert (value->state & STATE_LOCKED);
|
g_assert (value->state & STATE_LOCKED);
|
||||||
|
|
||||||
if (value->size == (gssize) -1)
|
if (value->size == (gsize) -1)
|
||||||
{
|
{
|
||||||
gpointer *children;
|
gpointer *children;
|
||||||
gsize n_children;
|
gsize n_children;
|
||||||
|
Reference in New Issue
Block a user