The references to gint and guint were copy/pasted from g_atomic_int_exchange(), but what we want here is a gpointer, gintptr or guintptr like the rest of the g_atomic_pointer_ family.
The references to gint and guint were copy/pasted from g_atomic_int_exchange(), but what we want here is a gpointer, gintptr or guintptr like the rest of the g_atomic_pointer_ family.