diff options
author | Mattias Andrée <maandree@kth.se> | 2022-07-19 13:47:08 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-07-19 13:47:08 +0200 |
commit | 3dd9089913623ccfa54ec7a2b5e876d17316c838 (patch) | |
tree | f39a4ead77a213f9904b4e21ff3aac1445b16612 /strtoi64.c | |
parent | Move some test code to newline created .c files (diff) | |
download | libsimple-3dd9089913623ccfa54ec7a2b5e876d17316c838.tar.gz libsimple-3dd9089913623ccfa54ec7a2b5e876d17316c838.tar.bz2 libsimple-3dd9089913623ccfa54ec7a2b5e876d17316c838.tar.xz |
Improve makefile and fix a bug
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | strtoi64.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |