fix compilation warning (WIN32)

This commit is contained in:
Thomas Bernard 2020-10-05 21:56:32 +02:00
parent 992565201b
commit c7cfe2c51a
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ static int upnp_gettimeofday(struct timeval * tv)
#else
DWORD ts = GetTickCount();
#endif
tv->tv_sec = ts / 1000;
tv->tv_sec = (long)(ts / 1000);
tv->tv_usec = (ts % 1000) * 1000;
return 0; /* success */
#elif defined(CLOCK_MONOTONIC_FAST) || defined(CLOCK_MONOTONIC)