From 6cb605a0256974c8c01d66579ff70e1ac76451ed Mon Sep 17 00:00:00 2001 From: Lipid Date: Sun, 16 Sep 2018 08:19:33 +0200 Subject: [PATCH] Remove reference to the runtime package within itself --- core/runtime/core.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/runtime/core.odin b/core/runtime/core.odin index 1ea0b1183..fff510dfb 100644 --- a/core/runtime/core.odin +++ b/core/runtime/core.odin @@ -363,7 +363,7 @@ pop :: proc "contextless" (array: ^$T/[dynamic]$E) -> E { @(builtin) unordered_remove :: proc(array: ^$D/[dynamic]$T, index: int, loc := #caller_location) { - runtime.bounds_check_error_loc(loc, index, len(array)); + bounds_check_error_loc(loc, index, len(array)); n := len(array)-1; if index != n { array[index] = array[n]; @@ -373,7 +373,7 @@ unordered_remove :: proc(array: ^$D/[dynamic]$T, index: int, loc := #caller_loca @(builtin) ordered_remove :: proc(array: ^$D/[dynamic]$T, index: int, loc := #caller_location) { - runtime.bounds_check_error_loc(loc, index, len(array)); + bounds_check_error_loc(loc, index, len(array)); copy(array[index:], array[index+1:]); pop(array); }