From a8e7caa0b36f6e7b1dca6618054545cb87b11f7e Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Thu, 29 Jun 2023 22:18:53 -0700 Subject: [PATCH] fix comment in compression --- src/Compression.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Compression.cc b/src/Compression.cc index 0377e9a1..8571c987 100644 --- a/src/Compression.cc +++ b/src/Compression.cc @@ -1154,12 +1154,11 @@ string bc0_decompress(const void* data, size_t size) { // so the first output byte corresponds to position 0xFEE on the first memo // page. Backreferences refer to offsets based on the start of memo pages; for // example, if the current output offset is 0x1234, a backreference with - // offset 0x123 refers to the byte that was written at offset 0x1112 (because - // that byte is at offset 0x112 in the memo, because the memo rolls over every + // offset 0x123 refers to the byte that was written at offset 0x1111 (because + // that byte is at offset 0x111 in the memo, because the memo rolls over every // 0x1000 bytes and the first memo byte was 0x12 bytes before the beginning of // the next page). The memo is initially zeroed from 0 to 0xFEE; it seems PSO - // GC doesn't initialize the last 0x12 bytes of the first memo page. For this - // reason, we avoid generating backreferences that refer to those bytes. + // GC doesn't initialize the last 0x12 bytes of the first memo page. parray memo; uint16_t memo_offset = 0x0FEE;