aboutsummaryrefslogtreecommitdiff
path: root/main-loop.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-04-12 20:42:34 +0200
committerStefan Weil <sw@weilnetz.de>2012-04-15 21:25:17 +0200
commit58b9630d7e2252d077b632c3a26d1aa334cf5fe6 (patch)
tree6054d3ef8ec3b59119e8fe31e5e1f32fc0467dc4 /main-loop.c
parentb065927a02cbbaca032ed20d3039baca0914165c (diff)
downloadqemu-arm-58b9630d7e2252d077b632c3a26d1aa334cf5fe6.tar.gz
w64: Fix type cast in os_host_main_loop_wait
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>
Diffstat (limited to 'main-loop.c')
-rw-r--r--main-loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main-loop.c b/main-loop.c
index 1ebdc4baf1..4887c732fa 100644
--- a/main-loop.c
+++ b/main-loop.c
@@ -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 = (DWORD) w->events[i];
+ poll_fds[n_poll_fds + i].fd = (DWORD_PTR)w->events[i];
poll_fds[n_poll_fds + i].events = G_IO_IN;
}