note an assmued invariant that may not be obvious
This commit is contained in:
parent
a38cd711ce
commit
9b2bc6b349
|
@ -109,6 +109,7 @@ static int get_nbits(bitstream_state_t *st, int n) {
|
||||||
return r;
|
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) {
|
static void decompress_vstr(mp_rom_error_text_t compressed, vstr_t *decompressed) {
|
||||||
bitstream_state_t b = {
|
bitstream_state_t b = {
|
||||||
.ptr = &(compressed->data) + (compress_max_length_bits >> 3),
|
.ptr = &(compressed->data) + (compress_max_length_bits >> 3),
|
||||||
|
|
Loading…
Reference in New Issue