The result should be safe because we only use this function on time
differences as part of timeout calculations, not on absolute times.
Add an explicit cast to suppress the warning.
#ifdef _WIN32
LARGE_INTEGER frequency;
QueryPerformanceFrequency(&frequency);
- return time->ticks / (frequency.QuadPart / 1000);
+ return (unsigned int) (time->ticks / (frequency.QuadPart / 1000));
#else
return time->tv.tv_sec * 1000 + time->tv.tv_usec / 1000;
#endif