X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fident%2Fident.c;h=8a23dfae629b54f13b77f765ea5bd0f9d08e36d8;hb=283f4cc63091ab35a8f4227f50cd68d339e94c8b;hp=c490f96574dfffda0c4b1b3a19b3a64cb138a3df;hpb=a1e9069afa4fa1e16e2d176bcd7905d6a1ed4677;p=libfirm diff --git a/ir/ident/ident.c b/ir/ident/ident.c index c490f9657..8a23dfae6 100644 --- a/ir/ident/ident.c +++ b/ir/ident/ident.c @@ -21,7 +21,6 @@ * @file * @brief Hash table to store names. * @author Goetz Lindenmaier - * @version $Id$ */ #include "config.h" @@ -47,7 +46,7 @@ void init_ident(void) ident *new_id_from_chars(const char *str, size_t len) { - unsigned hash = HASH_STR(str, len); + unsigned hash = hash_data((const unsigned char*)str, len); ident *result = (ident*) set_hinsert0(id_set, str, len, hash); return result; }