X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fident%2Fident_t.h;h=2fbf2d65ae15defcd81343376adc03d01c36a8ca;hb=e70c22e8aa4cc93e7d72f58453c03cb9bd797e31;hp=2aa19470d49766bcae98f1e0cf07763e6db9638f;hpb=109b367e18cda22744a532c734ecfbf6220d6c2d;p=libfirm diff --git a/ir/ident/ident_t.h b/ir/ident/ident_t.h index 2aa19470d..2fbf2d65a 100644 --- a/ir/ident/ident_t.h +++ b/ir/ident/ident_t.h @@ -31,10 +31,10 @@ void init_ident (ident_if_t *id_if, int initial_n_idents); void finish_ident (void); /** The hash function of the internal ident module implementation. */ -#define ID_HASH(str, len) \ - ((( ((unsigned char *)(str))[0] * 33 \ - + ((unsigned char *)(str))[(len)>>1]) * 31 \ - + ((unsigned char *)(str))[(len)-1]) * 9 \ +#define ID_HASH(type, str, len) \ + ((( ((type *)(str))[0] * 33 \ + + ((type *)(str))[(len)>>1]) * 31 \ + + ((type *)(str))[(len)-1]) * 9 \ + (len)) # endif /* _IDENT_T_H_ */