From 3dd9089913623ccfa54ec7a2b5e876d17316c838 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 19 Jul 2022 13:47:08 +0200 Subject: Improve makefile and fix a bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- strtoi64.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'strtoi64.c') diff --git a/strtoi64.c b/strtoi64.c index d34940c..6e0a898 100644 --- a/strtoi64.c +++ b/strtoi64.c @@ -6,8 +6,8 @@ #define RET_MIN (-RET_MAX - 1LL) -int_least32_t -libsimple_strtoi32(const char *restrict nptr, char **restrict end, int base) /* TODO test, man */ +int_least64_t +libsimple_strtoi64(const char *restrict nptr, char **restrict end, int base) /* TODO test, man */ { intmax_t r = strtoimax(nptr, end, base); if(r < RET_MIN) { @@ -17,7 +17,7 @@ libsimple_strtoi32(const char *restrict nptr, char **restrict end, int base) /* r = RET_MAX; errno = ERANGE; } - return (int_least32_t)r; + return (int_least64_t)r; } -- cgit v1.2.3-70-g09d2