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.
1 parent fea9af5 commit e8b9bbaCopy full SHA for e8b9bba
supervisor/shared/translate.c
@@ -87,11 +87,11 @@ STATIC int put_utf8(char *buf, int u) {
87
}
88
89
uint16_t decompress_length(const compressed_string_t *compressed) {
90
- if (compress_max_length_bits <= 8) {
91
- return 1 + (compressed->data >> (8 - compress_max_length_bits));
92
- } else {
93
- return 1 + ((compressed->data * 256 + compressed->tail[0]) >> (16 - compress_max_length_bits));
94
- }
+ #if (compress_max_length_bits <= 8)
+ return 1 + (compressed->data >> (8 - compress_max_length_bits));
+ #else
+ return 1 + ((compressed->data * 256 + compressed->tail[0]) >> (16 - compress_max_length_bits));
+ #endif
95
96
97
char *decompress(const compressed_string_t *compressed, char *decompressed) {
0 commit comments