[glib] gio/gasynchelper.c: fix cast from pointer to smaller int type	on win64
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [glib] gio/gasynchelper.c: fix cast from pointer to smaller int type	on win64
- Date: Wed,  1 Nov 2017 12:54:30 +0000 (UTC)
commit 663a5cc95fd78953a2ab6ee436033d9282169a69
Author: Tom Schoonjans <Tom Schoonjans diamond ac uk>
Date:   Mon Jan 16 14:20:01 2017 +0530
    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 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gio/gasynchelper.c b/gio/gasynchelper.c
index fc2464a..41bbb2a 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;
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]