diff options
Diffstat (limited to 'bin/sh/shell.h')
| -rw-r--r-- | bin/sh/shell.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/sh/shell.h b/bin/sh/shell.h index 0b25587c59f5..9e2f9ab6e735 100644 --- a/bin/sh/shell.h +++ b/bin/sh/shell.h @@ -59,8 +59,7 @@ */ typedef intmax_t arith_t; #define ARITH_FORMAT_STR "%" PRIdMAX -#define atoarith_t(arg) strtoimax(arg, NULL, 0) -#define strtoarith_t(nptr, endptr, base) strtoimax(nptr, endptr, base) +#define strtoarith_t(nptr, endptr, base) (intmax_t)strtoumax(nptr, endptr, base) #define ARITH_MIN INTMAX_MIN #define ARITH_MAX INTMAX_MAX |
