From 03570275c1cfd14014d81bcdf085c320c1902c40 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Thu, 13 Jul 2017 11:35:01 +0100 Subject: Fix issue #78 and have a better error message. --- core/_preload.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/_preload.odin b/core/_preload.odin index 9d012de0d..597ef284b 100644 --- a/core/_preload.odin +++ b/core/_preload.odin @@ -417,7 +417,7 @@ __get_map_header :: proc(m: ^map[$K]$V) -> __MapHeader #cc_contextless { value: V; } - _, is_string := type_info_base(type_info(K)).(^TypeInfo.String); + _, is_string := type_info_base(type_info(K)).variant.(TypeInfo.String); header.is_key_string = is_string; header.entry_size = size_of(Entry); header.entry_align = align_of(Entry); -- cgit v1.2.3