[glib] avoid warning in gutils.h when using gcc with -Wconversion



commit a1b015f7b70b3851d5a6e45fd4114c7723b4f1ea
Author: Hannes Müller <h c f mueller gmx de>
Date:   Thu Aug 5 23:11:03 2010 +0200

    avoid warning in gutils.h when using gcc with -Wconversion
    
    https://bugzilla.gnome.org/show_bug.cgi?id=619026

 glib/gutils.h |    2 +-
 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;
   



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]