Fix issue #78 and have a better error message.

This commit is contained in:
Ginger Bill
2017-07-13 11:35:01 +01:00
parent b5587f1937
commit 03570275c1
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -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);