Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
windows: squelch some compiler warnings
Browse files Browse the repository at this point in the history
This removes some compiler warnings caused by implicit type conversion
from uint64_t to long, which would happen in the `FILETIME_TO_TIMESPEC`
macro.
  • Loading branch information
piscisaureus committed Aug 24, 2013
1 parent 315d700 commit 1cc6f96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/win/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@

#define FILETIME_TO_TIMESPEC(ts, filetime) \
do { \
(ts).tv_sec = FILETIME_TO_TIME_T(filetime); \
(ts).tv_nsec = FILETIME_TO_TIME_NS(filetime, (ts).tv_sec); \
(ts).tv_sec = (long) FILETIME_TO_TIME_T(filetime); \
(ts).tv_nsec = (long) FILETIME_TO_TIME_NS(filetime, (ts).tv_sec); \
} while(0)

#define TIME_T_TO_FILETIME(time, filetime_ptr) \
Expand Down

0 comments on commit 1cc6f96

Please sign in to comment.