musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/internal/intparse.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/intparse.c b/src/internal/intparse.c
index 90aa8339..ffd06fe0 100644
--- a/src/internal/intparse.c
+++ b/src/internal/intparse.c
@@ -87,7 +87,7 @@ int __intparse(struct intparse *v, const void *buf, size_t n)
v->val = v->val * b + d;
if (!n) return 1;
if (d >= b) goto finished;
- if (v->val < (UINTMAX_MAX-d)/b)
+ if (v->val <= (UINTMAX_MAX-d)/b)
v->val = v->val * b + d;
else
v->err = ERANGE;
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月28日 10:40:38 +0000

AltStyle によって変換されたページ (->オリジナル) /