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

From: William Jeanveau (webremedies@home.com)
Date: 01/27/01


Alex wrote:
> > fight.c:909: warning: left shift count >= width of type
> > fight.c:913: warning: left shift count >= width of type
> > fight.c:917: warning: left shift count >= width of type
> > fight.c:921: warning: left shift count >= width of type
> Your AFF_ size is too big.  You can only have 32 of them with a 32bit
> integer.  ie, '(1 << 32)' and higher won't work.  You need another
> place to keep track of the higher numbers.
Nod,
found one I skipped over referring to the ULL in declaration of
AFF's, aswell, needed a slight modification of %lld to genshp.c,
and of course to change the typdef of bitvector in structs.h to
unsigned long long, all works well... so far..

Sorry for the reposts,

 William Jeanveau

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/03/01 PST