Re: warning: left shift count >= width of type

From: Michael Scott (scottm@dns.workcomm.net)
Date: 05/10/96


On Fri, 10 May 1996, Marcelo Valle Moreira wrote:

> 
> I've defined the flag as:
> #define AFF_F_ATTACK	      (1 << 35)
> 

	Okay your problem is fairly simple.. how your going to solve it, 
is really up to you..  The storage size for the affected flag is an int
(32 bit im supposing).. what you've defined as AFF_F_ATTACK is setting the
36th bit in a 32 bit wide storage class (from 0 - 31) .. so your solution
is to add more affected flags and swap your AFF_F_ATTACK to one of the 
new ones (with less than 32 defined).

                                  Michael Scott aka Manx!
			       FLAMES == scottm@workcomm.net



This archive was generated by hypermail 2b30 : 12/18/00 PST