[Zlib-devel] zlib: Run-Time Check Failure #1 - A cast tosmaller data type
Glenn Randers-Pehrson
glennrp at comcast.net
Mon Aug 27 12:15:34 EDT 2007
At 11:53 AM 8/27/2007 -0400, Glenn Randers-Pehrson wrote:
>Just for laughs I turned on all warnings on my Ubuntu-64 platform,
>gcc-4.1.2, and did not see this warning. I did however see warnings
>about use of "pragma" and the "U" and "LU" suffixes.
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. For NNNUL, we could write 0NNNL and get the same effect
on traditional and ISO C.
Glenn
More information about the Zlib-devel
mailing list