diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-06-22 16:14:02 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-06-22 16:14:02 +0100 |
| commit | 6cbb6bef0b817ba24ccbbf68d6192567bdc246ad (patch) | |
| tree | 05b0a616718faf98bb444121ba8d107694dc0624 /src/check_stmt.cpp | |
| parent | 8744c60563c4a4ae1a08cbdc2ed4db3755416c0c (diff) | |
Wrap hashing functions
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 3337aa13b..104733e67 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -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; |