Fix Microsoft VisualStudio 64-bit build of brotli

This commit is contained in:
Zoltan Szabadka
2013-12-13 15:30:20 +01:00
parent 19320557a9
commit 931479d735
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -651,9 +651,9 @@ int BrotliDecompress(BrotliInput input, BrotliOutput output) {
// Decode window size.
window_bits = DecodeWindowBits(&br);
max_backward_distance = (1 << window_bits) - 16;
max_backward_distance = (1ULL << window_bits) - 16;
ringbuffer_size = 1 << window_bits;
ringbuffer_size = 1ULL << window_bits;
ringbuffer_mask = ringbuffer_size - 1;
ringbuffer = (uint8_t*)malloc(ringbuffer_size +
kRingBufferWriteAheadSlack +