From 065d0e4ee355b5eb728d81c2c14120ec1500d651 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Mon, 9 Oct 2017 22:56:48 +0100 Subject: [PATCH] Fix `string_to_enum_value` --- core/fmt.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/fmt.odin b/core/fmt.odin index 752d74a13..9e8b26feb 100644 --- a/core/fmt.odin +++ b/core/fmt.odin @@ -698,7 +698,7 @@ enum_value_to_string :: proc(v: any) -> (string, bool) { string_to_enum_value :: proc(T: type, s: string) -> (T, bool) { ti := type_info_base(type_info_of(T)); - if e, ok := ti.variant.(Type_Info.Enum); ok { + if e, ok := ti.variant.(Type_Info_Enum); ok { for str, idx in e.names { if s == str { // NOTE(bill): Unsafe cast