Files

12 lines
493 B
C++
Raw Permalink Normal View History

2015-08-10 23:59:25 +00:00
--- src/lib/VSDMetaData.cpp.orig 2015-07-25 07:17:57 UTC
+++ src/lib/VSDMetaData.cpp
@@ -302,7 +302,7 @@ bool libvisio::VSDMetaData::parseTimes(l
uint32_t firstDirSectorLocation = readU32(input);
2015-02-02 22:26:36 +00:00
2015-08-10 23:59:25 +00:00
// Seek to the Root Directory Entry
- size_t sectorSize = std::pow(2, sectorShift);
+ size_t sectorSize = 1UL << sectorShift;
input->seek((firstDirSectorLocation + 1) * sectorSize, librevenge::RVNG_SEEK_SET);
// DirectoryEntryName: 64 bytes
// DirectoryEntryNameLength: 2 bytes