diff options
author | Ryan Lortie <desrt@desrt.ca> | 2011-10-18 16:21:17 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2011-10-18 16:45:28 -0400 |
commit | c9b6c3c85ac8f870ff193ae75b2bd19a7a310ec9 (patch) | |
tree | bfe21cdb4cdf4462cf87b8710d7b4872f39ce778 | |
parent | 4641d13770d4591ce85c5d8ffaf0484703666cc4 (diff) |
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.
-rw-r--r-- | glib/gatomic.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/glib/gatomic.h b/glib/gatomic.h index 0e4523fe7..a02950832 100644 --- a/glib/gatomic.h +++ b/glib/gatomic.h @@ -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) \ |