aboutsummaryrefslogtreecommitdiff
path: root/core/math/big/helpers.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-06-26 15:42:57 +0100
committergingerBill <bill@gingerbill.org>2023-06-26 15:42:57 +0100
commit3dec55f009da4293aca870d50f7b15668c4bba7c (patch)
tree5a17ea392dd5795831e5104c7c8c5e3496356940 /core/math/big/helpers.odin
parent00d60e28c2a3e3e3a2e8bf7617bd62c0f9b1aae8 (diff)
Replace `x in &y` Use `&v in y` syntax through core & vendor for `switch`/`for` statements
Diffstat (limited to 'core/math/big/helpers.odin')
-rw-r--r--core/math/big/helpers.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/math/big/helpers.odin b/core/math/big/helpers.odin
index 6c4b5dd01..a4313a244 100644
--- a/core/math/big/helpers.odin
+++ b/core/math/big/helpers.odin
@@ -19,7 +19,7 @@ import rnd "core:math/rand"
int_destroy :: proc(integers: ..^Int) {
integers := integers
- for a in &integers {
+ for a in integers {
assert_if_nil(a)
}
#force_inline internal_int_destroy(..integers)
@@ -408,7 +408,7 @@ clear_if_uninitialized_multi :: proc(args: ..^Int, allocator := context.allocato
args := args
assert_if_nil(..args)
- for i in &args {
+ for i in args {
#force_inline internal_clear_if_uninitialized_single(i, allocator) or_return
}
return err
@@ -435,7 +435,7 @@ int_init_multi :: proc(integers: ..^Int, allocator := context.allocator) -> (err
assert_if_nil(..integers)
integers := integers
- for a in &integers {
+ for a in integers {
#force_inline internal_clear(a, true, allocator) or_return
}
return nil