mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-19 10:52:08 +00:00
fix compilation warning (WIN32)
This commit is contained in:
parent
992565201b
commit
c7cfe2c51a
@ -459,7 +459,7 @@ static int upnp_gettimeofday(struct timeval * tv)
|
|||||||
#else
|
#else
|
||||||
DWORD ts = GetTickCount();
|
DWORD ts = GetTickCount();
|
||||||
#endif
|
#endif
|
||||||
tv->tv_sec = ts / 1000;
|
tv->tv_sec = (long)(ts / 1000);
|
||||||
tv->tv_usec = (ts % 1000) * 1000;
|
tv->tv_usec = (ts % 1000) * 1000;
|
||||||
return 0; /* success */
|
return 0; /* success */
|
||||||
#elif defined(CLOCK_MONOTONIC_FAST) || defined(CLOCK_MONOTONIC)
|
#elif defined(CLOCK_MONOTONIC_FAST) || defined(CLOCK_MONOTONIC)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user