mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-25 11:42:10 +01:00
Merge branch '1475-atomic-casts' into 'master'
tests: Fix a -Wbad-function-cast warning in the atomic tests Closes #1475 See merge request GNOME/glib!223
This commit is contained in:
commit
9ce18521aa
@ -92,7 +92,8 @@ test_types (void)
|
||||
g_assert (ip == 0);
|
||||
|
||||
g_atomic_pointer_set (&gs, 0);
|
||||
gs2 = (gsize) g_atomic_pointer_get (&gs);
|
||||
vp2 = g_atomic_pointer_get (&gs);
|
||||
gs2 = (gsize) vp2;
|
||||
g_assert (gs2 == 0);
|
||||
res = g_atomic_pointer_compare_and_exchange (&gs, 0, 0);
|
||||
g_assert (res);
|
||||
|
Loading…
x
Reference in New Issue
Block a user