Ticket #2809: datetime_mingw_convert_exception.diff

File datetime_mingw_convert_exception.diff, 659 bytes (added by bley@…, 14 years ago)
  • boost/date_time/filetime_functions.hpp

    old new  
    9696    {
    9797        /* shift is difference between 1970-Jan-01 & 1601-Jan-01
    9898        * 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'
    101101        const uint64_t shift = (c1 << 32) + c2;
    102102
    103103        union {