avoid warning in gutils.h when using gcc with -Wconversion
authorHannes Müller <h.c.f.mueller@gmx.de>
Thu, 5 Aug 2010 21:11:03 +0000 (23:11 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 5 Aug 2010 21:18:45 +0000 (23:18 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=619026

glib/gutils.h

index bb4da80..9028157 100644 (file)
@@ -355,7 +355,7 @@ g_bit_storage (gulong number)
 {
 #if defined(__GNUC__) && (__GNUC__ >= 4) && defined(__OPTIMIZE__)
   return G_LIKELY (number) ?
-          ((GLIB_SIZEOF_LONG * 8 - 1) ^ __builtin_clzl(number)) + 1 : 1;
+          ((GLIB_SIZEOF_LONG * 8U - 1) ^ __builtin_clzl(number)) + 1 : 1;
 #else
   register guint n_bits = 0;