File glib-shift.patch of Package glib1

--- glib.h
+++ glib.h
@@ -1585,7 +1585,7 @@ g_bit_nth_lsf (guint32 mask,
   do
     {
       nth_bit++;
-      if (mask & (1 << (guint) nth_bit))
+      if (mask & ((guint) 1 << nth_bit))
 	return nth_bit;
     }
   while (nth_bit < 32);
@@ -1605,7 +1605,7 @@ g_bit_nth_msf (guint32 mask,
   do
     {
       nth_bit--;
-      if (mask & (1 << (guint) nth_bit))
+      if (mask & ((guint) 1 << nth_bit))
 	return nth_bit;
     }
   while (nth_bit > 0);
openSUSE Build Service is sponsored by