Fix reading 64-bit values from ZIP headers

Specific values where not correctly converted because of
a signed/unsigned mismatch.
This commit is contained in:
Tobias Taschner
2018-02-15 19:54:42 +01:00
parent 0fe9d7c3bb
commit dd5d755bc2

View File

@@ -133,7 +133,7 @@ static inline wxUint64 CrackUint64(const char *m)
(static_cast<wxUint64>(n[6]) << 48) |
(static_cast<wxUint64>(n[5]) << 40) |
(static_cast<wxUint64>(n[4]) << 32) |
(n[3] << 24) | (n[2] << 16) | (n[1] << 8) | n[0];
(static_cast<wxUint64>(n[3]) << 24) | (n[2] << 16) | (n[1] << 8) | n[0];
}
// Decode a little endian wxUint32 number from a character array