gatomic: cast to the correct pointer sign
authorRyan Lortie <desrt@desrt.ca>
Tue, 18 Oct 2011 20:21:17 +0000 (16:21 -0400)
committerRyan Lortie <desrt@desrt.ca>
Tue, 18 Oct 2011 20:45:28 +0000 (16:45 -0400)
In the fallback case of the g_atomic_int_ macros we had some (gint*)
casts that should have been (guint*) casts.

glib/gatomic.h

index 0e4523fe7bd6bd8467adf761c39e709cbf3e5fb7..a0295083246d9371ba2c51422a9d7cbb056cf8f6 100644 (file)
@@ -188,11 +188,11 @@ G_END_DECLS
 #define g_atomic_int_add(atomic, val) \
   (g_atomic_int_add ((gint *) (atomic), (val)))
 #define g_atomic_int_and(atomic, val) \
-  (g_atomic_int_and ((gint *) (atomic), (val)))
+  (g_atomic_int_and ((guint *) (atomic), (val)))
 #define g_atomic_int_or(atomic, val) \
-  (g_atomic_int_or ((gint *) (atomic), (val)))
+  (g_atomic_int_or ((guint *) (atomic), (val)))
 #define g_atomic_int_xor(atomic, val) \
-  (g_atomic_int_xor ((gint *) (atomic), (val)))
+  (g_atomic_int_xor ((guint *) (atomic), (val)))
 #define g_atomic_int_inc(atomic) \
   (g_atomic_int_inc ((gint *) (atomic)))
 #define g_atomic_int_dec_and_test(atomic) \