File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -367,7 +367,7 @@ ssize_t lwan_h2_huffman_next(struct lwan_h2_huffman_decoder *huff)
367
367
}
368
368
369
369
if (!consume (reader , 8 ))
370
- goto fail ;
370
+ return -1 ;
371
371
372
372
const struct h2_huffman_code * level3 = next_level2 (peeked_byte );
373
373
if (LIKELY (level3 )) {
@@ -390,8 +390,9 @@ ssize_t lwan_h2_huffman_next(struct lwan_h2_huffman_decoder *huff)
390
390
/* FIXME: ensure we're not promoting types unnecessarily here */
391
391
if (reader -> total_bitcount ) {
392
392
const uint8_t peeked_byte = peek_byte (reader );
393
- const uint8_t eos_prefix = ((1 << reader -> total_bitcount ) - 1 )
394
- << (8 - reader -> total_bitcount );
393
+ const uint8_t eos_prefix =
394
+ (uint8_t )(((1u << reader -> total_bitcount ) - 1u )
395
+ << (8u - reader -> total_bitcount ));
395
396
396
397
if ((peeked_byte & eos_prefix ) == eos_prefix )
397
398
goto done ;
You can’t perform that action at this time.
0 commit comments