gio/gasynchelper.c: fix cast from pointer to smaller int type on win64

https://bugzilla.gnome.org/show_bug.cgi?id=777310
This commit is contained in:
Tom Schoonjans 2017-01-16 14:20:01 +05:30 committed by Philip Withnall
parent 53bd6a359f
commit 663a5cc95f

View File

@ -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;