diff options
Diffstat (limited to 'newlib/libc/stdlib/strtoul.c')
-rw-r--r-- | newlib/libc/stdlib/strtoul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/strtoul.c b/newlib/libc/stdlib/strtoul.c index f62c2f8..a3ac09d 100644 --- a/newlib/libc/stdlib/strtoul.c +++ b/newlib/libc/stdlib/strtoul.c @@ -174,7 +174,7 @@ _DEFUN (_strtoul_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; |