Skip to content
This repository was archived by the owner on Jul 27, 2022. It is now read-only.

Commit 009c4f0

Browse files
committed
Fixed issue with GetUncompressedLengthStream
1 parent a1d2d2d commit 009c4f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

decompress.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ bool Gipfeli::GetUncompressedLengthStream(
349349
*result = 0;
350350
for (int i = bytes_used - 1; i >= 0; --i) {
351351
*result <<= 8;
352-
*result |= *(ip + i);
352+
*result |= static_cast<unsigned char>(*(ip + i));
353353
}
354354

355355
// Uncompressed string can have at most (2 GB - 1).

0 commit comments

Comments
 (0)