From 7f48cf84056f63abb4ad6a62900def4418fd994c Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 7 Sep 2020 11:41:42 +0100 Subject: [REFLECTION BREAKING] Modify the internals of the `map` type to increase performance --- src/check_type.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/check_type.cpp') diff --git a/src/check_type.cpp b/src/check_type.cpp index 7be70c11d..118c9a622 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -2794,6 +2794,8 @@ void check_map_type(CheckerContext *ctx, Type *type, Ast *node) { if (is_type_string(key)) { add_package_dependency(ctx, "runtime", "default_hash_string"); + } else { + add_package_dependency(ctx, "runtime", "default_hash_ptr"); } -- cgit v1.2.3