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 226 226 uint64_t modifiedTime = readU64(input); 227 227 228 228 // modifiedTime is number of 100ns since Jan 1 1601 229 static const uint64_t epoch = 11644473600 ;229 static const uint64_t epoch = 11644473600ULL; 230 230 time_t sec = (modifiedTime / 10000000) - epoch; 231 231 const struct tm *time = localtime(&sec); 232 232 if (time)