Goofy error

From: Crimson Wizard (cwizard@GIBLETS.COM)
Date: 07/30/97


class.c: In function `invalid_race':
class.c:987: warning: left shift count >= width of type
class.c:988: warning: left shift count >= width of type
class.c:989: warning: left shift count >= width of type
class.c:990: warning: left shift count >= width of type
class.c:991: warning: left shift count >= width of type
class.c:992: warning: left shift count >= width of type
class.c:993: warning: left shift count >= width of type
class.c:994: warning: left shift count >= width of type
class.c:995: warning: left shift count >= width of type

this is the code:

int invalid_race(struct char_data *ch, struct obj_data *obj) {
  if ((IS_OBJ_STAT(obj, ITEM_ANTI_HUMAN)     && IS_HUMAN(ch)) ||
      (IS_OBJ_STAT(obj, ITEM_ANTI_HIGHELF)   && IS_HIGHELF(ch)) ||
      (IS_OBJ_STAT(obj, ITEM_ANTI_DROWELF)   && IS_DROWELF(ch)) ||
      (IS_OBJ_STAT(obj, ITEM_ANTI_AQUAELF)   && IS_AQUAELF(ch)) ||
      (IS_OBJ_STAT(obj, ITEM_ANTI_HALFELF)   && IS_HALFELF(ch)) ||
      (IS_OBJ_STAT(obj, ITEM_ANTI_FAIRY)     && IS_FAIRY(ch)) ||
      (IS_OBJ_STAT(obj, ITEM_ANTI_HALFLING)  && IS_HALFLING(ch)) ||
      (IS_OBJ_STAT(obj, ITEM_ANTI_GNOME)     && IS_GNOME(ch)) ||
      (IS_OBJ_STAT(obj, ITEM_ANTI_DWARF)     && IS_DWARF(ch)) ||
      (IS_OBJ_STAT(obj, ITEM_ANTI_MTNDWARF)  && IS_MTNDWARF(ch)) ||
      (IS_OBJ_STAT(obj, ITEM_ANTI_SIVAKDRAC) && IS_SIVAKDRAC(ch)) ||
      (IS_OBJ_STAT(obj, ITEM_ANTI_AURAKDRAC) && IS_AURAKDRAC(ch)) ||
      (IS_OBJ_STAT(obj, ITEM_ANTI_MINOTAUR)  && IS_MINOTAUR(ch)) ||
      (IS_OBJ_STAT(obj, ITEM_ANTI_HILLGIANT) && IS_HILLGIANT(ch)) ||
      (IS_OBJ_STAT(obj, ITEM_ANTI_HALFTROLL) && IS_HALFTROLL(ch)) ||
      (IS_OBJ_STAT(obj, ITEM_ANTI_KENDER)    && IS_KENDER(ch)) ||
      (IS_OBJ_STAT(obj, ITEM_ANTI_AVIAN)     && IS_AVIAN(ch)) ||
      (IS_OBJ_STAT(obj, ITEM_ANTI_PIXIE)     && IS_PIXIE(ch)))
        return 1;
  else
        return 0;
}

goofy


--
#!/bin/sh
whois yea.com|grep YEA2|awk '{print $1}'
whois aree.com|grep DOM|awk '{print $1}'
whois aree.com|grep DOM|awk '{print $1}'|cut -c1
whois tm920|grep TM920|awk '{print $4}'|cut -d@ -f1


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



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