Re: [Circle] races?

From: Stefan Jakobsson (gorgon@katrinet.se)
Date: 11/05/96


On Tue, 5 Nov 1996, Jeremy Elson wrote:
> > - >I was just putting some more races in and wondered if there was a limit to
> > - >how many races circlemud can handle in it's present form?  Reason i ask is
> > - >i notice in several spots the proggie is shifting a bit depending on which
> > - >race is chosen.  I figure eventually if you keep shifting that bit it's
> > - >going into the ol bit-bucket.. so how many races can one have?
> > - 
> > - You've noticed this too, huh?  I get the left-shift warning 3 times when 
> > - compiling because my highest bitvector type thingie is (1 << 34).
> > - 
> > - I think it's because of the 32-bit thing, but i'm not sure, and have yet to
> > - figure out how to get it to go away.
> 
> Warnings are there for a reason!  You can only "fix" the warning by fixing
> the code, which I promise does not work.  1 << 34 is meaningless -- it's
> just 0.  The 1 is getting shifted right off the end of the 32-bit integer. 

And in this case you 'fix' it by adding another bitvector, that way you 
get another 32 its to play around with...

Stefan (aka Slite)
PhoneyMUD Imp 

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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