aboutsummaryrefslogtreecommitdiff
path: root/core/math/big
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-03-21 11:52:48 +0000
committergingerBill <bill@gingerbill.org>2024-03-21 11:52:48 +0000
commit29e5f94c2a0d666eed93a1013f895f3c86d6373f (patch)
tree2bf6e0c219d86737e25285765d6ce9377ca02a51 /core/math/big
parentfc587c507adce69d7025111ea2a3a40d7e9b373f (diff)
Add `#no_broadcast` procedure parameter to disallow automatic array programming broadcasting on procedure arguments
Diffstat (limited to 'core/math/big')
-rw-r--r--core/math/big/prime.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/big/prime.odin b/core/math/big/prime.odin
index cb0b08dbb..b02b7cb4e 100644
--- a/core/math/big/prime.odin
+++ b/core/math/big/prime.odin
@@ -1112,7 +1112,7 @@ internal_int_prime_next_prime :: proc(a: ^Int, trials: int, bbs_style: bool, all
Generate the restable.
*/
for x := 1; x < _PRIME_TAB_SIZE; x += 1 {
- res_tab = internal_mod(a, _private_prime_table[x]) or_return
+ res_tab = cast(type_of(res_tab))(internal_mod(a, _private_prime_table[x]) or_return)
}
for {