aboutsummaryrefslogtreecommitdiff
path: root/core/_preload.odin
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-04-22 09:40:32 +0100
committerGinger Bill <bill@gingerbill.org>2017-04-22 09:40:32 +0100
commit0ea815db498d52ffd654801cc68bb95f4fdb437e (patch)
tree913cbb2e27b89e9322ac172bcd1e1dbdca6350f4 /core/_preload.odin
parent91ed51ff5c9c49a739f6a835acf6df492690e2cd (diff)
Fix constant bounds checking for slicing
Diffstat (limited to 'core/_preload.odin')
-rw-r--r--core/_preload.odin1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/_preload.odin b/core/_preload.odin
index 6939a8c17..3419c78d8 100644
--- a/core/_preload.odin
+++ b/core/_preload.odin
@@ -350,6 +350,7 @@ __slice_expr_error :: proc(file: string, line, column: int, low, high, max: int)
file, line, column, low, high, max);
__debug_trap();
}
+
__substring_expr_error :: proc(file: string, line, column: int, low, high: int) {
if 0 <= low && low <= high {
return;