aboutsummaryrefslogtreecommitdiff
path: root/lib/lwres/compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lwres/compat.c')
-rw-r--r--lib/lwres/compat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lwres/compat.c b/lib/lwres/compat.c
index b8ae31f1968d..3b7a07048e26 100644
--- a/lib/lwres/compat.c
+++ b/lib/lwres/compat.c
@@ -123,6 +123,7 @@ lwres_strtoul(const char *nptr, char **endptr, int base) {
acc = ULONG_MAX;
errno = ERANGE;
} else if (neg)
+ /* XXX: acc was declared unsigned! */
acc = -acc;
if (endptr != 0)
DE_CONST(any ? s - 1 : nptr, *endptr);