From a0bd31646bd5ab0fa4b8e3e8766d59f70c5f0d4c Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 11 Nov 2022 13:02:23 +0000 Subject: Make `map` get internal calls take the hash value rather than compute it internally --- src/checker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/checker.cpp') 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); } -- cgit v1.2.3