Re: NEWBIE: warning: left shift count >= width of type (fwd)

From: Brian Pape (bpape@ezl.com)
Date: 05/10/96


> I've noted that, strangely enough, on some machines, (1 << 31) will
> screw up the sprintbit function.  This, I'm pretty sure, is because of
> the sign of the int.  Sprintbit checks if the number is less than zero,
> and most machines have the sign bit in slot 31.

simple solution would be to make all bitvectors unsigned long.

Taran.
Reign of Towers
bpape@ezl.com



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