Skip to content
Snippets Groups Projects
Commit 58b9630d authored by Stefan Weil's avatar Stefan Weil
Browse files

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: default avatarStefan Weil <sw@weilnetz.de>
parent b065927a
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment