Re: [Bug Help Needed] Class.c

From: Kaine LaZaro (demond@tolkien.realms.org)
Date: 02/23/99


Doh, how can I fix this? Cause we're about to add 2 more classes...

James
On Tue, 23 Feb 1999, Todd A Laycock wrote:

> Hmm jumps out at me that the 34 classes are shifted more than the 32 bits
> you can use.  Course if I'm wrong just ignore me. :)
>
> On Tue, 23 Feb 1999, Kaine LaZaro wrote:
>
> > I just finished adding all 34 classes of mine to my class menu and when I
> > compile I get this error:
> > gcc -c -g -O2 -Wall  class.c
> > class.c: In function `find_class_bitvector':
> > class.c:227: warning: left shift count >= width of type
> > class.c:230: warning: left shift count >= width of type
> >
> > now line 227 is:
> >     case '5': return (1 << CLASS_BARD);
> > and 230 is:
> >     case '8': return (1 << CLASS_ASSASSIN);
> >
> > The numeric secion looks like this:
> >     case '1': return (1 << CLASS_SUMMONER);
> >     case '2': return (1 << CLASS_ANGELIC_SUMMONER);
> >     case '3': return (1 << CLASS_DEMONIC_SUMMONER);
> >     case '4': return (1 << CLASS_ROGUE);
> >     case '5': return (1 << CLASS_BARD);
> >     case '6': return (1 << CLASS_THIEF);
> >     case '7': return (1 << CLASS_OUTLAW);
> >     case '8': return (1 << CLASS_ASSASSIN);
> >
> > Any ideas? Thaks for your time.
> >
> >
> > `Up, Down, Over, and Through, Back arround the Jokes on you!'
> >  -- Magic the Gathering
> >
> >
> >      +------------------------------------------------------------+
> >      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
> >      |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
> >      +------------------------------------------------------------+
> >
>
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
>      +------------------------------------------------------------+
>


`Up, Down, Over, and Through, Back arround the Jokes on you!'
 -- Magic the Gathering


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



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