Browse Source

Fix 'string_to_enum_value' not compiling

Justas Dabrila 5 years ago
parent
commit
95d3f43e15
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/fmt/fmt.odin

+ 2 - 2
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) {
 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 {
 		for str, idx in e.names {
 			if s == str {
 			if s == str {
 				// NOTE(bill): Unsafe cast
 				// NOTE(bill): Unsafe cast