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) |
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, if (strcmp(suffixes->suffix, e) == 0) { if (XSTR_UTYPE_MAX / suffixes->mult < r) goto range; /* overflow! */ - ++e; r *= suffixes->mult; - break; + goto chk_range; } ++suffixes; } @@ -61,6 +60,7 @@ unsigned type xstrtou(_range_sfx)(const char *numstr, int base, It would be easy enough to allow though if desired. */ if (*e) goto inval; + chk_range: /* Finally, check for range limits. */ if (r >= lower && r <= upper) return r; |