diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-16 00:30:52 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-16 00:30:52 +0000 |
commit | 53a0e971960a520bd859b8aac6dbebec2045115f (patch) | |
tree | 7fbf136ec7cba71b8e463825b32c5ef3a9eb6ce2 /libbb | |
parent | b941129ccb7901b0715c6affa9d0347f6fa5e64d (diff) | |
download | busybox-w32-53a0e971960a520bd859b8aac6dbebec2045115f.tar.gz busybox-w32-53a0e971960a520bd859b8aac6dbebec2045115f.tar.bz2 busybox-w32-53a0e971960a520bd859b8aac6dbebec2045115f.zip |
find: make -size match GNU find
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/xatonum_template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/xatonum_template.c b/libbb/xatonum_template.c index ce0199594..bc8116056 100644 --- a/libbb/xatonum_template.c +++ b/libbb/xatonum_template.c | |||
@@ -49,9 +49,8 @@ unsigned type xstrtou(_range_sfx)(const char *numstr, int base, | |||
49 | if (strcmp(suffixes->suffix, e) == 0) { | 49 | if (strcmp(suffixes->suffix, e) == 0) { |
50 | if (XSTR_UTYPE_MAX / suffixes->mult < r) | 50 | if (XSTR_UTYPE_MAX / suffixes->mult < r) |
51 | goto range; /* overflow! */ | 51 | goto range; /* overflow! */ |
52 | ++e; | ||
53 | r *= suffixes->mult; | 52 | r *= suffixes->mult; |
54 | break; | 53 | goto chk_range; |
55 | } | 54 | } |
56 | ++suffixes; | 55 | ++suffixes; |
57 | } | 56 | } |
@@ -61,6 +60,7 @@ unsigned type xstrtou(_range_sfx)(const char *numstr, int base, | |||
61 | It would be easy enough to allow though if desired. */ | 60 | It would be easy enough to allow though if desired. */ |
62 | if (*e) | 61 | if (*e) |
63 | goto inval; | 62 | goto inval; |
63 | chk_range: | ||
64 | /* Finally, check for range limits. */ | 64 | /* Finally, check for range limits. */ |
65 | if (r >= lower && r <= upper) | 65 | if (r >= lower && r <= upper) |
66 | return r; | 66 | return r; |