use intptr_t type for pointer->integer conversion so that int <-> pointer sizes match

This commit is contained in:
Hartmut Holzgraefe
2015-02-14 16:39:05 +01:00
parent 3ecf926092
commit 617f44c9c9
2 changed files with 6 additions and 5 deletions

View File

@ -438,7 +438,7 @@ poll_waitevents(void *arg)
{
struct epoll_event events[MAX_EVENTS];
int i, nfds, timeout_bias = 1;
int thread_id = (int)arg;
intptr_t thread_id = (intptr_t)arg;
DCB *zombies = NULL;
int poll_spins = 0;