mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
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:
parent
4641d13770
commit
c9b6c3c85a
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user