From 663a5cc95fd78953a2ab6ee436033d9282169a69 Mon Sep 17 00:00:00 2001 From: Tom Schoonjans Date: Mon, 16 Jan 2017 14:20:01 +0530 Subject: [PATCH] gio/gasynchelper.c: fix cast from pointer to smaller int type on win64 https://bugzilla.gnome.org/show_bug.cgi?id=777310 --- gio/gasynchelper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gio/gasynchelper.c b/gio/gasynchelper.c index fc2464ace..41bbb2ad5 100644 --- a/gio/gasynchelper.c +++ b/gio/gasynchelper.c @@ -44,7 +44,11 @@ _g_win32_overlap_wait_result (HANDLE hfile, gboolean result = FALSE; gint num, npoll; +#if GLIB_SIZEOF_VOID_P == 8 + pollfd[0].fd = (gint64)overlap->hEvent; +#else pollfd[0].fd = (gint)overlap->hEvent; +#endif pollfd[0].events = G_IO_IN; num = 1;