[Zlib-devel] Wanring on 64 bit compiler
Gilles Vollant
info at winimage.com
Tue Sep 7 07:11:58 EDT 2004
When I compile zLib 1.2.1 with Microsoft 64 bits compiler, I had 2 warning.
Here is the warning, the original line and my modification
inftrees.c(257) : warning C4334: '<<' : result of 32-bit shift implicitly
converted to 64 bits (was 64-bit shift intended?)
next += 1U << curr;
next += ((size_t)1U) << curr;
inflate.c(1266) : warning C4334: '<<' : result of 32-bit shift implicitly
converted to 64 bits (was 64-bit shift intended?)
zmemcpy(window, state->window, 1U << state->wbits);
zmemcpy(window, state->window, ((size_t)1U) << state->wbits);
More information about the Zlib-devel
mailing list