Avoid a message about undefined compress_max_length_bits
.. which occurs during qstring generation.
This commit is contained in:
parent
4e2ab71dfe
commit
ede085fd06
|
@ -87,11 +87,15 @@ STATIC int put_utf8(char *buf, int u) {
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t decompress_length(const compressed_string_t *compressed) {
|
uint16_t decompress_length(const compressed_string_t *compressed) {
|
||||||
|
#if defined(compress_max_length_bits)
|
||||||
#if (compress_max_length_bits <= 8)
|
#if (compress_max_length_bits <= 8)
|
||||||
return 1 + (compressed->data >> (8 - compress_max_length_bits));
|
return 1 + (compressed->data >> (8 - compress_max_length_bits));
|
||||||
#else
|
#else
|
||||||
return 1 + ((compressed->data * 256 + compressed->tail[0]) >> (16 - compress_max_length_bits));
|
return 1 + ((compressed->data * 256 + compressed->tail[0]) >> (16 - compress_max_length_bits));
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
// generating qstrs
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
char *decompress(const compressed_string_t *compressed, char *decompressed) {
|
char *decompress(const compressed_string_t *compressed, char *decompressed) {
|
||||||
|
|
Loading…
Reference in New Issue