Wrap hashing functions

This commit is contained in:
Ginger Bill
2017-06-22 16:14:02 +01:00
parent 8744c60563
commit 6cbb6bef0b
5 changed files with 59 additions and 60 deletions
+1 -1
View File
@@ -1489,7 +1489,7 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) {
GB_PANIC("Unknown type to type match statement");
}
HashKey key = hash_pointer(y.type);
HashKey key = hash_type(y.type);
bool *found = map_get(&seen, key);
if (found) {
TokenPos pos = cc->token.pos;