summaryrefslogtreecommitdiff
path: root/rts/Hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/Hash.c')
-rw-r--r--rts/Hash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rts/Hash.c b/rts/Hash.c
index b9a3cf6f33..658187b944 100644
--- a/rts/Hash.c
+++ b/rts/Hash.c
@@ -77,8 +77,9 @@ hashWord(const HashTable *table, StgWord key)
}
int
-hashStr(const HashTable *table, char *key)
+hashStr(const HashTable *table, StgWord w)
{
+ const char *key = (char*) w;
#ifdef x86_64_HOST_ARCH
StgWord h = XXH64 (key, strlen(key), 1048583);
#else
@@ -440,8 +441,7 @@ allocHashTable(void)
HashTable *
allocStrHashTable(void)
{
- return allocHashTable_((HashFunction *)hashStr,
- (CompareFunction *)compareStr);
+ return allocHashTable_(hashStr, compareStr);
}
void