summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/strtoull.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdlib/strtoull.c')
-rw-r--r--lib/libc/stdlib/strtoull.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/strtoull.c b/lib/libc/stdlib/strtoull.c
index ac0935e..d694cfd 100644
--- a/lib/libc/stdlib/strtoull.c
+++ b/lib/libc/stdlib/strtoull.c
@@ -88,13 +88,13 @@ strtoull(nptr, endptr, base)
}
if (base == 0)
base = c == '0' ? 8 : 10;
- any = 0;
+ acc = any = 0;
if (base < 2 || base > 36)
goto noconv;
cutoff = ULLONG_MAX / base;
cutlim = ULLONG_MAX % base;
- for (acc = 0; ; c = *s++) {
+ for ( ; ; c = *s++) {
if (!isascii(c))
break;
if (isdigit(c))
OpenPOWER on IntegriCloud