Skip to content

Commit ececcae

Browse files
committed
Merge pull request syoyo#27 from baldurk/fix-warning-c4334
Fix VS2015 update 2 warning
2 parents 7b2c72f + 6a0527a commit ececcae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tinyexr.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -2292,7 +2292,7 @@ tinfl_status tinfl_decompress(tinfl_decompressor *r,
22922292
if (!(decomp_flags & TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF))
22932293
counter |= (((1U << (8U + (r->m_zhdr0 >> 4))) > 32768U) ||
22942294
((out_buf_size_mask + 1) <
2295-
(size_t)(1U << (8U + (r->m_zhdr0 >> 4)))));
2295+
(size_t)(1ULL << (8U + (r->m_zhdr0 >> 4)))));
22962296
if (counter) {
22972297
TINFL_CR_RETURN_FOREVER(36, TINFL_STATUS_FAILED);
22982298
}
@@ -8010,7 +8010,7 @@ bool hufBuildDecTable(const long long *hcode, // i : encoding table
80108010

80118011
HufDec *pl = hdecod + (c << (HUF_DECBITS - l));
80128012

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++) {
80148014
if (pl->len || pl->p) {
80158015
//
80168016
// Error: a short code or a long code has

0 commit comments

Comments
 (0)