Skip to content

Commit ede085f

Browse files
committed
Avoid a message about undefined compress_max_length_bits
.. which occurs during qstring generation.
1 parent 4e2ab71 commit ede085f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

supervisor/shared/translate.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,15 @@ STATIC int put_utf8(char *buf, int u) {
8787
}
8888

8989
uint16_t decompress_length(const compressed_string_t *compressed) {
90+
#if defined(compress_max_length_bits)
9091
#if (compress_max_length_bits <= 8)
9192
return 1 + (compressed->data >> (8 - compress_max_length_bits));
9293
#else
9394
return 1 + ((compressed->data * 256 + compressed->tail[0]) >> (16 - compress_max_length_bits));
9495
#endif
96+
#else
97+
// generating qstrs
98+
#endif
9599
}
96100

97101
char *decompress(const compressed_string_t *compressed, char *decompressed) {

0 commit comments

Comments
 (0)