Fix GCancellable tests for Windows 64bit

Fixes https://gitlab.gnome.org/GNOME/glib/-/issues/2703
This commit is contained in:
Luca Bacci 2022-08-03 20:33:21 +02:00
parent 08715a4cd1
commit a1737ece06

View File

@ -468,7 +468,7 @@ typedef struct {
GCallback callback;
gboolean is_disconnecting;
gboolean is_resetting;
gulong handler_id;
gpointer handler_id;
} ConnectingThreadData;
static void
@ -496,7 +496,7 @@ connecting_thread (gpointer user_data)
g_main_context_push_thread_default (context);
loop = g_main_loop_new (context, FALSE);
g_atomic_pointer_set (&data->handler_id, handler_id);
g_atomic_pointer_set (&data->handler_id, (gpointer) handler_id);
g_atomic_pointer_set (&data->loop, loop);
g_main_loop_run (loop);