summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/strtoq.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1996-07-12 18:57:58 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1996-07-12 18:57:58 +0000
commit51295a4d3e4c551df85249433c490208dc7fd23d (patch)
treec116431af8e1f042b25e0f70c63c437cf7ff8d63 /lib/libc/stdlib/strtoq.c
parentaf7a29993083b1562f01c87bb774fbe4fc3579e7 (diff)
Notes
Diffstat (limited to 'lib/libc/stdlib/strtoq.c')
-rw-r--r--lib/libc/stdlib/strtoq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdlib/strtoq.c b/lib/libc/stdlib/strtoq.c
index a5720df447d4..26667496f32d 100644
--- a/lib/libc/stdlib/strtoq.c
+++ b/lib/libc/stdlib/strtoq.c
@@ -119,7 +119,7 @@ strtoq(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;