aboutsummaryrefslogtreecommitdiffstats
path: root/strtouh.c
diff options
context:
space:
mode:
Diffstat (limited to 'strtouh.c')
-rw-r--r--strtouh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strtouh.c b/strtouh.c
index 7e4505f..9033930 100644
--- a/strtouh.c
+++ b/strtouh.c
@@ -6,7 +6,7 @@
unsigned short int
libsimple_strtouh(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 > USHRT_MAX) {
r = USHRT_MAX;
errno = ERANGE;