Merge pull request #8666 from jepler/document-invariant-assumption

note an assumed invariant that may not be obvious
This commit is contained in:
Dan Halbert 2023-11-28 16:07:54 -05:00 committed by GitHub
commit 949a906d5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ static int get_nbits(bitstream_state_t *st, int n) {
return r;
}
// note: the vstr must be a fixed-buffer vstr that matches the decompressed length of the string
static void decompress_vstr(mp_rom_error_text_t compressed, vstr_t *decompressed) {
bitstream_state_t b = {
.ptr = &(compressed->data) + (compress_max_length_bits >> 3),