From fcfe59c1f2219408ac2a9cd84b386816ff252221 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 11 Jun 2022 16:37:09 +0200 Subject: Fix warnings, replace some static inline with inline + extern inline, and fix glibc support --- strtouhh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'strtouhh.c') diff --git a/strtouhh.c b/strtouhh.c index b13800d..72dbd7c 100644 --- a/strtouhh.c +++ b/strtouhh.c @@ -6,7 +6,7 @@ unsigned char libsimple_strtouhh(const char *restrict nptr, char **restrict end, int base) /* TODO test, man */ { - signed long int r = strtoul(nptr, end, base); + unsigned long int r = strtoul(nptr, end, base); if(r > UCHAR_MAX) { r = UCHAR_MAX; errno = ERANGE; -- cgit v1.2.3-70-g09d2