From d70fa4329cd2642d27ab2b507399dc571f95a8b3 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 15 Aug 2021 11:08:28 +0100 Subject: [PATCH] Move `#no_bounds_check` to before `return` --- core/strings/intern.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/strings/intern.odin b/core/strings/intern.odin index def03d899..0e4951f87 100644 --- a/core/strings/intern.odin +++ b/core/strings/intern.odin @@ -26,7 +26,7 @@ intern_destroy :: proc(m: ^Intern) { intern_get :: proc(m: ^Intern, text: string) -> string { entry := _intern_get_entry(m, text); - return #no_bounds_check string(entry.str[:entry.len]); + #no_bounds_check return string(entry.str[:entry.len]); } intern_get_cstring :: proc(m: ^Intern, text: string) -> cstring { entry := _intern_get_entry(m, text);