From 1cc6f96f0ce64fa4cc78e9f59c220bd590eeb487 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sat, 24 Aug 2013 15:42:31 +0200 Subject: [PATCH] windows: squelch some compiler warnings This removes some compiler warnings caused by implicit type conversion from uint64_t to long, which would happen in the `FILETIME_TO_TIMESPEC` macro. --- src/win/fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win/fs.c b/src/win/fs.c index 59de7d8c9b..e18c43c077 100644 --- a/src/win/fs.c +++ b/src/win/fs.c @@ -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) \