File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2292,7 +2292,7 @@ tinfl_status tinfl_decompress(tinfl_decompressor *r,
2292
2292
if (!(decomp_flags & TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF))
2293
2293
counter |= (((1U << (8U + (r->m_zhdr0 >> 4 ))) > 32768U ) ||
2294
2294
((out_buf_size_mask + 1 ) <
2295
- (size_t )(1U << (8U + (r->m_zhdr0 >> 4 )))));
2295
+ (size_t )(1ULL << (8U + (r->m_zhdr0 >> 4 )))));
2296
2296
if (counter) {
2297
2297
TINFL_CR_RETURN_FOREVER (36 , TINFL_STATUS_FAILED);
2298
2298
}
@@ -8010,7 +8010,7 @@ bool hufBuildDecTable(const long long *hcode, // i : encoding table
8010
8010
8011
8011
HufDec *pl = hdecod + (c << (HUF_DECBITS - l));
8012
8012
8013
- for (long long i = 1 << (HUF_DECBITS - l); i > 0 ; i--, pl++) {
8013
+ for (long long i = 1ULL << (HUF_DECBITS - l); i > 0 ; i--, pl++) {
8014
8014
if (pl->len || pl->p ) {
8015
8015
//
8016
8016
// Error: a short code or a long code has
You can’t perform that action at this time.
0 commit comments