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:
Emmanuel Fleury 2019-02-04 13:41:54 +01:00
parent b673ac48cc
commit 9023483d36

View File

@ -336,7 +336,7 @@ g_variant_ensure_size (GVariant *value)
{
g_assert (value->state & STATE_LOCKED);
if (value->size == (gssize) -1)
if (value->size == (gsize) -1)
{
gpointer *children;
gsize n_children;