[Zlib-devel] A few compiler warnings with 1.2.2.2

Gilles Vollant info at winimage.com
Sun Feb 6 16:13:21 EST 2005


<<Did the patch I sent help or did you still get the warnings?>>
I still get the warning 

-----Original Message-----
From: Mark Adler [mailto:madler at alumni.caltech.edu] 
Sent: Sunday, February 06, 2005 10:02 PM
To: zlib-devel at zlib.net
Subject: Re: [Zlib-devel] A few compiler warnings with 1.2.2.2

On Feb 6, 2005, at 12:52 PM, Gilles Vollant wrote:
> uInt is 32 bits , size_t is unsigned 64 bits
>
> The other solution I found is :
> In inflate.c
> zmemcpy(window, state->window, ((size_t)1) << state->wbits);
>
> In inftrees.c
> next += ((size_t)1) << curr;

I can't use size_t since it's not portable.

Did the patch I sent help or did you still get the warnings?

mark


_______________________________________________
Zlib-devel mailing list
Zlib-devel at zlib.net
http://madler.net/mailman/listinfo/zlib-devel_madler.net







More information about the Zlib-devel mailing list