]> git.pld-linux.org Git - packages/glib2.git/commitdiff
- fix for g_bit_nth_{l,m}sf on 64-bit archs (from glib CVS); affected g_log
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 10 Jan 2004 13:36:40 +0000 (13:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    glib2-g_bit-64bit.patch -> 1.1

glib2-g_bit-64bit.patch [new file with mode: 0644]

diff --git a/glib2-g_bit-64bit.patch b/glib2-g_bit-64bit.patch
new file mode 100644 (file)
index 0000000..101ceae
--- /dev/null
@@ -0,0 +1,24 @@
+--- glib-2.2.3/glib/gutils.h.orig      2002-11-08 01:51:25.000000000 +0100
++++ glib-2.2.3/glib/gutils.h   2004-01-10 14:23:51.473033649 +0100
+@@ -232,10 +232,10 @@
+   do
+     {
+       nth_bit++;
+-      if (mask & (1 << (gulong) nth_bit))
++      if (mask & (1UL << nth_bit))
+       return nth_bit;
+     }
+-  while (nth_bit < 31);
++  while (nth_bit < ((GLIB_SIZEOF_LONG * 8) - 1));
+   return -1;
+ }
+ G_INLINE_FUNC gint
+@@ -247,7 +247,7 @@
+   do
+     {
+       nth_bit--;
+-      if (mask & (1 << (gulong) nth_bit))
++      if (mask & (1UL << nth_bit))
+       return nth_bit;
+     }
+   while (nth_bit > 0);
This page took 0.044967 seconds and 4 git commands to generate.