diff Core/Compression/ZipWriter.cpp @ 3129:c262b10bfae1

fix build of civetweb for Visual Studio 2008 and LSB
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Jan 2019 12:17:29 +0100
parents 4e43e67f8ecf
children 6fd38327e777
line wrap: on
line diff
--- a/Core/Compression/ZipWriter.cpp	Wed Jan 16 09:52:05 2019 +0100
+++ b/Core/Compression/ZipWriter.cpp	Wed Jan 16 12:17:29 2019 +0100
@@ -59,9 +59,9 @@
   ptime midnight(today);
 
   time_duration sinceMidnight = now - midnight;
-  zfi.tmz_date.tm_sec = sinceMidnight.seconds();  // seconds after the minute - [0,59]
-  zfi.tmz_date.tm_min = sinceMidnight.minutes();  // minutes after the hour - [0,59]
-  zfi.tmz_date.tm_hour = sinceMidnight.hours();  // hours since midnight - [0,23]
+  zfi.tmz_date.tm_sec = static_cast<unsigned int>(sinceMidnight.seconds());  // seconds after the minute - [0,59]
+  zfi.tmz_date.tm_min = static_cast<unsigned int>(sinceMidnight.minutes());  // minutes after the hour - [0,59]
+  zfi.tmz_date.tm_hour = static_cast<unsigned int>(sinceMidnight.hours());  // hours since midnight - [0,23]
 
   // http://www.boost.org/doc/libs/1_35_0/doc/html/boost/gregorian/greg_day.html
   zfi.tmz_date.tm_mday = today.day();  // day of the month - [1,31]