We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 27d8832 + 234fa2a commit 57e70adCopy full SHA for 57e70ad
supervisor/shared/translate.c
@@ -86,7 +86,7 @@ uint16_t decompress_length(const compressed_string_t *compressed) {
86
char *decompress(const compressed_string_t *compressed, char *decompressed) {
87
uint8_t this_byte = compress_max_length_bits / 8;
88
uint8_t this_bit = 7 - compress_max_length_bits % 8;
89
- uint8_t b = (&compressed->data)[this_byte];
+ uint8_t b = (&compressed->data)[this_byte] << (compress_max_length_bits % 8);
90
uint16_t length = decompress_length(compressed);
91
92
// Stop one early because the last byte is always NULL.
0 commit comments