Ticket #46926: libvisio-0.1-VSDMetaData.cpp-64bit-literal.diff

File libvisio-0.1-VSDMetaData.cpp-64bit-literal.diff, 456 bytes (added by khepler, 10 years ago)
  • src/lib/VSDMetaData.cpp

    old new  
    226226  uint64_t modifiedTime = readU64(input);
    227227
    228228  // modifiedTime is number of 100ns since Jan 1 1601
    229   static const uint64_t epoch = 11644473600;
     229  static const uint64_t epoch = 11644473600ULL;
    230230  time_t sec = (modifiedTime / 10000000) - epoch;
    231231  const struct tm *time = localtime(&sec);
    232232  if (time)