diff options
-rw-r--r-- | include/a2i/strtoi.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/a2i/strtoi.h b/include/a2i/strtoi.h index ce6f8f0..aa5d5b4 100644 --- a/include/a2i/strtoi.h +++ b/include/a2i/strtoi.h @@ -115,11 +115,8 @@ a2i_strtou_noneg(const char *s, if (status == NULL) status = &st; - if (a2i_strtoi(s, endp, base, 0, INTMAX_MAX, status) == 0 - && *status == ERANGE) - { + if (a2i_strtoi(s, endp, base, 0, 1, status) == 0 && *status == ERANGE) return min; - } return a2i_strtou(s, endp, base, min, max, status); } |