aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-11-11 13:02:23 +0000
committergingerBill <bill@gingerbill.org>2022-11-11 13:02:23 +0000
commita0bd31646bd5ab0fa4b8e3e8766d59f70c5f0d4c (patch)
tree002dd6ccf61aa3f75b35ec6c657440976148e91c /src/checker.cpp
parent0d37da54b4937a19bf581dc001271eb16ac86daf (diff)
Make `map` get internal calls take the hash value rather than compute it internally
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index d48b37b26..0c23f2627 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -927,8 +927,8 @@ void init_universal(void) {
Type *hasher_args[2] = {t_rawptr, t_uintptr};
t_hasher_proc = alloc_type_proc_from_types(hasher_args, 2, t_uintptr, false, ProcCC_Contextless);
- Type *map_get_args[2] = {/*map*/t_rawptr, /*key*/t_rawptr};
- t_map_get_proc = alloc_type_proc_from_types(map_get_args, 2, t_rawptr, false, ProcCC_Contextless);
+ Type *map_get_args[3] = {/*map*/t_rawptr, /*hash*/t_uintptr, /*key*/t_rawptr};
+ t_map_get_proc = alloc_type_proc_from_types(map_get_args, 3, t_rawptr, false, ProcCC_Contextless);
}