[Zlib-devel] zlib: Run-Time Check Failure #1 - A cast tosmaller data type

Mark Adler madler at alumni.caltech.edu
Mon Aug 27 13:54:43 EDT 2007


On Aug 27, 2007, at 9:15 AM, Glenn Randers-Pehrson wrote:
> It looks as though most instances of LU are in 0xNNNLU constants.
> For these, the U can simply be removed because 0xNNNL is unsigned
> anyway.

Well, this could be a no win situation, since the U's are there to  
satisfy other compilers that think 0xNNNL is signed and them  
complains when you assign it to an unsigned variable.

Mark





More information about the Zlib-devel mailing list