Skip to content

Commit 5515f71

Browse files
Fix compilation warning on MSVC
1 parent 3b9f3e2 commit 5515f71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/streamer/helpers.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ int gettimeofday(struct timeval *tv, struct timezone *tz) {
3838
x.LowPart = filetime.dwLowDateTime;
3939
x.HighPart = filetime.dwHighDateTime;
4040
usec = x.QuadPart / 10 - epoch_offset_us;
41-
tv->tv_sec = time_t(usec / 1000000ULL);
41+
tv->tv_sec = long(usec / 1000000ULL);
4242
tv->tv_usec = long(usec % 1000000ULL);
4343
}
4444
if (tz) {

0 commit comments

Comments
 (0)