Skip to content

Commit

Permalink
Fix compilation warning on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
paullouisageneau committed Jan 9, 2024
1 parent 3b9f3e2 commit 5515f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/streamer/helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ int gettimeofday(struct timeval *tv, struct timezone *tz) {
x.LowPart = filetime.dwLowDateTime;
x.HighPart = filetime.dwHighDateTime;
usec = x.QuadPart / 10 - epoch_offset_us;
tv->tv_sec = time_t(usec / 1000000ULL);
tv->tv_sec = long(usec / 1000000ULL);
tv->tv_usec = long(usec % 1000000ULL);
}
if (tz) {
Expand Down

0 comments on commit 5515f71

Please sign in to comment.