summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Müller <h.c.f.mueller@gmx.de>2010-08-05 21:11:03 (GMT)
committerBenjamin Otte <otte@redhat.com>2010-08-05 21:18:45 (GMT)
commita1b015f7b70b3851d5a6e45fd4114c7723b4f1ea (patch)
treed6847f9a4ddad08d68222607af7ccb599bf77428
parent970d0634e9ade050158bdb529a6f8a7deb8fb319 (diff)
downloadglib-a1b015f7b70b3851d5a6e45fd4114c7723b4f1ea.zip
glib-a1b015f7b70b3851d5a6e45fd4114c7723b4f1ea.tar.xz
avoid warning in gutils.h when using gcc with -Wconversion
https://bugzilla.gnome.org/show_bug.cgi?id=619026
-rw-r--r--glib/gutils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gutils.h b/glib/gutils.h
index bb4da80..9028157 100644
--- a/glib/gutils.h
+++ b/glib/gutils.h
@@ -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;