diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-13 11:35:01 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-13 11:35:01 +0100 |
| commit | 03570275c1cfd14014d81bcdf085c320c1902c40 (patch) | |
| tree | 3e23c41050d6fd61044b4cad5a80f03a833fb738 /core/_preload.odin | |
| parent | b5587f1937edf8440fdf713988c9e3bc38886e93 (diff) | |
Fix issue #78 and have a better error message.
Diffstat (limited to 'core/_preload.odin')
| -rw-r--r-- | core/_preload.odin | 2 |
1 files changed, 1 insertions, 1 deletions
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); |