]> git.proxmox.com Git - qemu.git/commitdiff
w64: Fix type cast in os_host_main_loop_wait
authorStefan Weil <sw@weilnetz.de>
Thu, 12 Apr 2012 18:42:34 +0000 (20:42 +0200)
committerStefan Weil <sw@weilnetz.de>
Sun, 15 Apr 2012 19:25:17 +0000 (21:25 +0200)
Casting a pointer to an integer must use (DWORD_PTR) instead of (DWORD).
This also matches the definition of 'fd' (gint for w32, gint64 for w64).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
main-loop.c

index 1ebdc4baf1f2befcabc49d8b804357698a68ecb4..4887c732faec5b6a22847288e6d99983d1260128 100644 (file)
@@ -430,7 +430,7 @@ static int os_host_main_loop_wait(int timeout)
     g_assert(n_poll_fds <= ARRAY_SIZE(poll_fds));
 
     for (i = 0; i < w->num; i++) {
-        poll_fds[n_poll_fds + i].fd = (DWORDw->events[i];
+        poll_fds[n_poll_fds + i].fd = (DWORD_PTR)w->events[i];
         poll_fds[n_poll_fds + i].events = G_IO_IN;
     }