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)
             ^
This commit is contained in:
Emmanuel Fleury 2019-02-03 19:24:29 +01:00
parent d7ddf66938
commit f58702ebbf

View File

@ -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);