aboutsummaryrefslogtreecommitdiff
path: root/lib/roken/strtoull.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/roken/strtoull.c')
-rw-r--r--lib/roken/strtoull.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/roken/strtoull.c b/lib/roken/strtoull.c
index 3befab552de5..0516e18f9135 100644
--- a/lib/roken/strtoull.c
+++ b/lib/roken/strtoull.c
@@ -121,7 +121,7 @@ strtoull(const char * nptr, char ** endptr, int base)
noconv:
errno = EINVAL;
} else if (neg)
- acc = -acc;
+ acc = -(long long)acc;
if (endptr != NULL)
*endptr = (char *)(any ? s - 1 : nptr);
return (acc);