mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-13 14:53:34 +00:00
Move #no_bounds_check to before return
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user