summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/strtouq.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdlib/strtouq.c')
-rw-r--r--lib/libc/stdlib/strtouq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdlib/strtouq.c b/lib/libc/stdlib/strtouq.c
index 16dda0b..7656a3c 100644
--- a/lib/libc/stdlib/strtouq.c
+++ b/lib/libc/stdlib/strtouq.c
@@ -97,7 +97,7 @@ strtouq(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;
OpenPOWER on IntegriCloud