summaryrefslogtreecommitdiffhomepage
path: root/ir/ident
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2011-12-13 18:32:46 +0100
committerMatthias Braun <matze@braunis.de>2011-12-14 01:51:49 +0100
commit6032e9e802d2d5c696b90fd17f4b4c9bf9a39540 (patch)
treeb054016b1614fee64151b69f6c7f5fa79510e075 /ir/ident
parent68d6fda00d6fb04a040905f232c6d9454f6e0136 (diff)
hashptr.h: use inline functions instead of #define
Diffstat (limited to 'ir/ident')
-rw-r--r--ir/ident/ident.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/ident/ident.c b/ir/ident/ident.c
index fd5c5d1..8a23dfa 100644
--- a/ir/ident/ident.c
+++ b/ir/ident/ident.c
@@ -46,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;
}