mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Use slice.zero instead
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package regex_vm
|
package regex_vm
|
||||||
|
|
||||||
@require import "core:io"
|
@require import "core:io"
|
||||||
|
import "core:slice"
|
||||||
import "core:text/regex/common"
|
import "core:text/regex/common"
|
||||||
import "core:text/regex/parser"
|
import "core:text/regex/parser"
|
||||||
import "core:unicode/utf8"
|
import "core:unicode/utf8"
|
||||||
@@ -348,9 +349,7 @@ run :: proc(vm: ^Machine, $UNICODE_MODE: bool) -> (saved: ^[2 * common.MAX_CAPTU
|
|||||||
}
|
}
|
||||||
|
|
||||||
for {
|
for {
|
||||||
for i := 0; i < len(vm.busy_map); i += 1 {
|
slice.zero(vm.busy_map[:])
|
||||||
vm.busy_map[i] = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
assert(vm.string_pointer <= len(vm.memory), "VM string pointer went out of bounds.")
|
assert(vm.string_pointer <= len(vm.memory), "VM string pointer went out of bounds.")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user