[Zlib-devel] A few compiler warnings with 1.2.2.2

Paul Marquess Paul.Marquess at ntlworld.com
Sun Jan 30 16:19:09 EST 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zlib.patch
Type: application/octet-stream
Size: 5298 bytes
Desc: not available
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20050130/61efe618/attachment.obj>


More information about the Zlib-devel mailing list