aboutsummaryrefslogtreecommitdiff
path: root/core/text/regex/regex.odin
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2024-08-05 03:49:29 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2024-08-05 03:49:29 -0400
commit8f5b838a071d010959a3f38a2c73cf49f31a16cf (patch)
treeb8ebccb85254aa79f48ece86c588e0a2c39450bc /core/text/regex/regex.odin
parent14858309f082e7fccdeb9859422f7ba1f0ee98c8 (diff)
Review manual `for` loops in `core:text/regex`
Diffstat (limited to 'core/text/regex/regex.odin')
-rw-r--r--core/text/regex/regex.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/text/regex/regex.odin b/core/text/regex/regex.odin
index 9ff924192..3dc26b5c6 100644
--- a/core/text/regex/regex.odin
+++ b/core/text/regex/regex.odin
@@ -291,7 +291,7 @@ match_and_allocate_capture :: proc(
context.allocator = permanent_allocator
num_groups := 0
- for i := 0; i < len(saved); i += 2 {
+ #no_bounds_check for i := 0; i < len(saved); i += 2 {
a, b := saved[i], saved[i + 1]
if a == -1 || b == -1 {
continue