From 95d3f43e155f70853427c24afb138a489582f35a Mon Sep 17 00:00:00 2001 From: Justas Dabrila Date: Sat, 14 Dec 2019 01:08:47 +0200 Subject: [PATCH] Fix 'string_to_enum_value' not compiling --- core/fmt/fmt.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/fmt/fmt.odin b/core/fmt/fmt.odin index 33ca6294c..80ff890c8 100644 --- a/core/fmt/fmt.odin +++ b/core/fmt/fmt.odin @@ -837,8 +837,8 @@ enum_value_to_string :: proc(val: any) -> (string, bool) { } string_to_enum_value :: proc($T: typeid, s: string) -> (T, bool) { - ti := type_info_base(type_info_of(T)); - if e, ok := ti.variant.(Type_Info_Enum); ok { + ti := runtime.type_info_base(type_info_of(T)); + if e, ok := ti.variant.(runtime.Type_Info_Enum); ok { for str, idx in e.names { if s == str { // NOTE(bill): Unsafe cast