From 3a644dad785bc597c74027c6422b686a7ae68453 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Wed, 20 Sep 2017 20:45:40 +0100 Subject: [PATCH] Fix issue #101 --- build.bat | 2 +- core/_preload.odin | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.bat b/build.bat index 92155e787..ea9952610 100644 --- a/build.bat +++ b/build.bat @@ -43,7 +43,7 @@ del *.ilk > NUL 2> NUL cl %compiler_settings% "src\main.cpp" ^ /link %linker_settings% -OUT:%exe_name% ^ - && odin run examples/demo.odin -opt=0 -collection=foo=W:\Odin\core + && odin run examples/demo.odin -opt=0 rem && odin docs core/fmt.odin del *.obj > NUL 2> NUL diff --git a/core/_preload.odin b/core/_preload.odin index b3808e551..8d0a9c639 100644 --- a/core/_preload.odin +++ b/core/_preload.odin @@ -440,7 +440,7 @@ __get_map_header :: proc(m: ^$T/map[$K]$V) -> __Map_Header #cc_contextless { __get_map_key :: proc(key: $K) -> __Map_Key #cc_contextless { map_key: __Map_Key; ti := type_info_base_without_enum(type_info_of(K)); - match _ in ti { + match _ in ti.variant { case Type_Info.Integer: match 8*size_of(key) { case 8: map_key.hash = u128(( ^u8)(&key)^);