aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib/strtol.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/strtol.c')
-rw-r--r--newlib/libc/stdlib/strtol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/strtol.c b/newlib/libc/stdlib/strtol.c
index 6d355d5..4c07e61 100644
--- a/newlib/libc/stdlib/strtol.c
+++ b/newlib/libc/stdlib/strtol.c
@@ -194,7 +194,7 @@ _DEFUN (_strtol_r, (rptr, nptr, endptr, base),
break;
if (c >= base)
break;
- if (any < 0 || acc > cutoff || acc == cutoff && c > cutlim)
+ if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
any = -1;
else {
any = 1;