From dd5d755bc2354871efecba2ff6c18013c65d21fb Mon Sep 17 00:00:00 2001 From: Tobias Taschner Date: Thu, 15 Feb 2018 19:54:42 +0100 Subject: [PATCH] Fix reading 64-bit values from ZIP headers Specific values where not correctly converted because of a signed/unsigned mismatch. --- src/common/zipstrm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/zipstrm.cpp b/src/common/zipstrm.cpp index 063c1edf4c..3b25275b7f 100644 --- a/src/common/zipstrm.cpp +++ b/src/common/zipstrm.cpp @@ -133,7 +133,7 @@ static inline wxUint64 CrackUint64(const char *m) (static_cast(n[6]) << 48) | (static_cast(n[5]) << 40) | (static_cast(n[4]) << 32) | - (n[3] << 24) | (n[2] << 16) | (n[1] << 8) | n[0]; + (static_cast(n[3]) << 24) | (n[2] << 16) | (n[1] << 8) | n[0]; } // Decode a little endian wxUint32 number from a character array