diff options
author | David Tardon <dtardon@redhat.com> | 2015-01-06 13:48:06 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-01-06 13:48:06 +0100 |
commit | 949e96a5b47c3a1fcbc49d9f228398c641ab86af (patch) | |
tree | 337c0ae18907ce5dfe17942a0b62c5570576cccc /src/lib | |
parent | 49c0d44063c452f0927e8938951f065e1e488ecb (diff) |
workaround build error on old 32-bit linux systems
"error: integer constant is too large for 'long' type"
Change-Id: Ib2a8987da0bdc03e2b479d8743f8366fde83c203
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/VSDMetaData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/VSDMetaData.cpp b/src/lib/VSDMetaData.cpp index d1db01e..d8a8ce1 100644 --- a/src/lib/VSDMetaData.cpp +++ b/src/lib/VSDMetaData.cpp @@ -226,7 +226,7 @@ bool libvisio::VSDMetaData::parseTimes(librevenge::RVNGInputStream *input) uint64_t modifiedTime = readU64(input); // modifiedTime is number of 100ns since Jan 1 1601 - static const uint64_t epoch = 11644473600; + static const uint64_t epoch = uint64_t(116444736UL) * 100; time_t sec = (modifiedTime / 10000000) - epoch; const struct tm *time = localtime(&sec); if (time) |