projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
970d063
)
avoid warning in gutils.h when using gcc with -Wconversion
author
Hannes Müller
<h.c.f.mueller@gmx.de>
Thu, 5 Aug 2010 21:11:03 +0000
(23:11 +0200)
committer
Benjamin 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
patch
|
blob
|
history
diff --git
a/glib/gutils.h
b/glib/gutils.h
index bb4da80550eb8b6ddfea8fc8b38318229cd537ba..90281579c6c8ddf36073114bc0451e5b404dde90 100644
(file)
--- 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 * 8
U
- 1) ^ __builtin_clzl(number)) + 1 : 1;
#else
register guint n_bits = 0;