[Zlib-devel] zLib warning with VC++ 2005

Willis willis at deathmask.net
Fri Jul 15 17:42:27 EDT 2005


Correct.  VC8 currently shows support for Win64 (machine type AMD64), 
however, it lacks the libraries and proper includes to compile it without 
the Windows 2003 SP1 Platform SDK.  With said SDK, it compiles with no 
warnings on machinetype AMD64.

With reguard to the warning on the VS2005 compiler, I don't see why a cast 
over the entire line would break anything as it would be evaluating 
everything at its natural value before casting anything down.

So
s->bi_buf = (ush)(val >> (Buf_size - s->bi_valid));\
looks fine to me, but that decision is best left to the experts.



----- Original Message ----- 
From: "William A. Rowe, Jr." <wrowe at rowe-clan.net>
To: <zlib-devel at zlib.net>
Sent: Friday, July 15, 2005 3:17 PM
Subject: Re: [Zlib-devel] zLib warning with VC++ 2005


> I'm not sure you can trust /WP64 to generate warnings; it's
> far more reliable to simply build 64 bit modules and determine
> from those included headers what the true conflicts really are.
>
> I'm guessing that VC isn't catching all the subtleties of what
> the Win64 declarations would really be if you build for 64 bits.
>
> Bill





More information about the Zlib-devel mailing list