Skip to content

Commit

Permalink
testutil.c: silence warnings on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Dec 16, 2023
1 parent 438f6dc commit eaf8ca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/libtest/testutil.c
Expand Up @@ -37,8 +37,8 @@ struct timeval tutil_tvnow(void)
*/
struct timeval now;
DWORD milliseconds = GetTickCount();
now.tv_sec = milliseconds / 1000;
now.tv_usec = (milliseconds % 1000) * 1000;
now.tv_sec = (long)(milliseconds / 1000);
now.tv_usec = (long)((milliseconds % 1000) * 1000);
return now;
}

Expand Down

0 comments on commit eaf8ca0

Please sign in to comment.