[Zlib-devel] A few compiler warnings with 1.2.2.2

Gilles Vollant info at winimage.com
Sat Feb 5 22:59:31 EST 2005



I've also these two warning in 64 bits compiling
inftrees.c(265) : warning C4334: '<<' : result of 32-bit shift implicitly
converted to 64 bits (was 64-bit shift intended?)
inflate.c(1341) : warning C4334: '<<' : result of 32-bit shift implicitly
converted to 64 bits (was 64-bit shift intended?) 

-----Original Message-----
From: Paul Marquess [mailto:Paul.Marquess at ntlworld.com] 
Sent: Sunday, January 30, 2005 10:19 PM
To: zlib-devel at zlib.net
Subject: [Zlib-devel] A few compiler warnings with 1.2.2.2

Got these compiler warnings building 1.2.2.2 on win32 with the Microsoft C
compiler. The enclosed patch silenced them.

deflate.c
deflate.c(586) : warning C4244: '=' : conversion from 'unsigned long ' to
'unsigned char ', possible loss of data
deflate.c(587) : warning C4244: '=' : conversion from 'unsigned long ' to
'unsigned char ', possible loss of data
deflate.c(588) : warning C4244: '=' : conversion from 'unsigned long ' to
'unsigned char ', possible loss of data
deflate.c(589) : warning C4244: '=' : conversion from 'unsigned long ' to
'unsigned char ', possible loss of data
deflate.c(639) : warning C4018: '<' : signed/unsigned mismatch
deflate.c(640) : warning C4018: '==' : signed/unsigned mismatch
deflate.c(646) : warning C4018: '==' : signed/unsigned mismatch
deflate.c(655) : warning C4018: '==' : signed/unsigned mismatch
deflate.c(669) : warning C4018: '==' : signed/unsigned mismatch
deflate.c(675) : warning C4018: '==' : signed/unsigned mismatch
deflate.c(700) : warning C4018: '==' : signed/unsigned mismatch
deflate.c(706) : warning C4018: '==' : signed/unsigned mismatch
deflate.c(725) : warning C4018: '>' : signed/unsigned mismatch
deflate.c(727) : warning C4018: '<=' : signed/unsigned mismatch
deflate.c(728) : warning C4244: '=' : conversion from 'unsigned long ' to
'unsigned char ', possible loss of data
deflate.c(729) : warning C4244: '=' : conversion from 'unsigned long ' to
'unsigned char ', possible loss of data





More information about the Zlib-devel mailing list