[glib: 5/25] Fixing signedness in glib/gquark.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 5/25] Fixing signedness in glib/gquark.c
- Date: Tue, 19 Mar 2019 11:03:16 +0000 (UTC)
commit f58702ebbf62d03b87ef7f04ed15666c015d3a44
Author: Emmanuel Fleury <emmanuel fleury u-bordeaux fr>
Date: Sun Feb 3 19:24:29 2019 +0100
Fixing signedness in glib/gquark.c
glib/gquark.c: In function ‘g_quark_to_string’:
glib/gquark.c:268:13: error: comparison of integer expressions of different signedness: ‘GQuark’ {aka
‘unsigned int’} and ‘gint’ {aka ‘int’} [-Werror=sign-compare]
if (quark < seq_id)
^
glib/gquark.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gquark.c b/glib/gquark.c
index cfe4ab878..2a0861094 100644
--- a/glib/gquark.c
+++ b/glib/gquark.c
@@ -271,7 +271,7 @@ g_quark_to_string (GQuark quark)
{
gchar* result = NULL;
gchar **strings;
- gint seq_id;
+ guint seq_id;
seq_id = g_atomic_int_get (&quark_seq_id);
strings = g_atomic_pointer_get (&quarks);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]