Ticket #2809: datetime_mingw_convert_exception.diff
File datetime_mingw_convert_exception.diff, 659 bytes (added by , 14 years ago) |
---|
-
boost/date_time/filetime_functions.hpp
old new 96 96 { 97 97 /* shift is difference between 1970-Jan-01 & 1601-Jan-01 98 98 * in 100-nanosecond intervals */ 99 const uint64_t c1 = 27111902UL;100 const uint64_t c2 = 3577643008UL; // issues warning without 'UL'99 const uint64_t c1 = static_cast<uint64_t>(27111902UL); 100 const uint64_t c2 = static_cast<uint64_t>(3577643008UL); // issues warning without 'UL' 101 101 const uint64_t shift = (c1 << 32) + c2; 102 102 103 103 union {