Skip to content

Commit 949a906

Browse files
authored
Merge pull request #8666 from jepler/document-invariant-assumption
note an assumed invariant that may not be obvious
2 parents ad0949d + 9b2bc6b commit 949a906

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

supervisor/shared/translate/translate.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ static int get_nbits(bitstream_state_t *st, int n) {
109109
return r;
110110
}
111111

112+
// note: the vstr must be a fixed-buffer vstr that matches the decompressed length of the string
112113
static void decompress_vstr(mp_rom_error_text_t compressed, vstr_t *decompressed) {
113114
bitstream_state_t b = {
114115
.ptr = &(compressed->data) + (compress_max_length_bits >> 3),

0 commit comments

Comments
 (0)