[glib: 19/25] Fixing signedness in glib/gvariant-core.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 19/25] Fixing signedness in glib/gvariant-core.c
- Date: Tue, 19 Mar 2019 11:04:26 +0000 (UTC)
commit 9023483d36e6800778977b109bf2b65ac7116798
Author: Emmanuel Fleury <emmanuel fleury u-bordeaux fr>
Date: Mon Feb 4 13:41:54 2019 +0100
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)
^~
glib/gvariant-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gvariant-core.c b/glib/gvariant-core.c
index d6bc20952..123220c1d 100644
--- a/glib/gvariant-core.c
+++ b/glib/gvariant-core.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]