gatomic: cast to the correct pointer sign

In the fallback case of the g_atomic_int_ macros we had some (gint*)
casts that should have been (guint*) casts.
This commit is contained in:
Ryan Lortie 2011-10-18 16:21:17 -04:00
parent 4641d13770
commit c9b6c3c85a

View 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) \