aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-05-24 17:43:00 +0200
committerGitHub <noreply@github.com>2025-05-24 17:43:00 +0200
commit0a6dced9daf6baa1b2e81b7d5542899ca6022c7e (patch)
tree707d00b153dfe53eeb515f8fbb93b9d926c31100 /core
parent142dd58b279b6d7291d75a1f8158fe315b7104c0 (diff)
parentd402b7408ddc29ddd3e7fb260e43375df11c65e8 (diff)
Merge pull request #5210 from Barinzaya/core-math-big-range-check
Fix range check in `core:math/big`'s `int_atoi`
Diffstat (limited to 'core')
-rw-r--r--core/math/big/radix.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/big/radix.odin b/core/math/big/radix.odin
index a5100e478..a1c25b55e 100644
--- a/core/math/big/radix.odin
+++ b/core/math/big/radix.odin
@@ -280,7 +280,7 @@ int_atoi :: proc(res: ^Int, input: string, radix := i8(10), allocator := context
}
pos := ch - '+'
- if RADIX_TABLE_REVERSE_SIZE <= pos {
+ if RADIX_TABLE_REVERSE_SIZE <= u32(pos) {
break
}
y := RADIX_TABLE_REVERSE[pos]