Skip to content

Commit 47e8322

Browse files
Update comment
1 parent 66cde0b commit 47e8322

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libbz3.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ static u32 lzp_upcast(const u8 * ptr) {
9696
/**
9797
* @brief Check if the buffer size is sufficient for decoding a bz3 block
9898
*
99-
* Data passed to the BWT+BCM step can be one of the following:
99+
* Data passed to the last step can be one of the following:
100100
* - original data
101101
* - original data + LZP
102102
* - original data + RLE
103103
* - original data + RLE + LZP
104104
*
105105
* We must ensure `buffer_size` is large enough to store the data at every step
106-
* when walking backwards from undoing BWT+BCM. The required size may be stored in
107-
* either `lzp_size`, `rle_size` OR `orig_size`.
106+
* when walking backwards. The required size may be stored in either `lzp_size`,
107+
* `rle_size` OR `orig_size`.
108108
*
109109
* @param buffer_size Size of the output buffer
110110
* @param lzp_size Size after LZP decompression (-1 if LZP not used)
@@ -1050,4 +1050,4 @@ BZIP3_API int bz3_orig_size_sufficient_for_decode(const u8 * block, size_t block
10501050
}
10511051
if (model & 4) rle_size = read_neutral_s32(block + header_size);
10521052
return bz3_check_buffer_size((size_t)orig_size, lzp_size, rle_size, orig_size);
1053-
}
1053+
}

0 commit comments

Comments
 (0)