diff options
author | Denys Vlasenko | 2009-06-05 16:24:29 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-06-05 16:24:29 +0200 |
commit | 71016baf5524d739d1dd4d9110b111a7c3ddcaf9 (patch) | |
tree | 4d012db2dc2dd20e0956c0b188e52ab43059d2cc /shell/math.h | |
parent | 0f952c249e30834a3ee5cd821e9afc3197b05f9c (diff) | |
download | busybox-71016baf5524d739d1dd4d9110b111a7c3ddcaf9.zip busybox-71016baf5524d739d1dd4d9110b111a7c3ddcaf9.tar.gz |
printf: accept negative numbers for %x; sh: overflowed numbers are 0
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/math.h')
-rw-r--r-- | shell/math.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/math.h b/shell/math.h index 51dbb56..7b7898e 100644 --- a/shell/math.h +++ b/shell/math.h @@ -80,11 +80,11 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN #if ENABLE_SH_MATH_SUPPORT_64 typedef long long arith_t; #define arith_t_fmt "%lld" -#define strto_arith_t strtoll +#define strto_arith_t strtoull #else typedef long arith_t; #define arith_t_fmt "%ld" -#define strto_arith_t strtol +#define strto_arith_t strtoul #endif typedef const char *(*arith_var_lookup_t)(const char *name); |