commit | cc4303f5e603f3212ede6965ee37609d2a386398 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Wed Jan 06 14:00:53 2021 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Wed Jan 06 14:00:53 2021 +0100 |
tree | 0f9a10e4d286236de1099fc87f4f4cbae3952513 | |
parent | 2266c12a79f537308a4ce576cf8e8fb2a89babde [diff] [blame] |
bc: code shrink Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/miscutils/bc.c b/miscutils/bc.c index 48be3d8..53eb5c7 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c
@@ -1841,9 +1841,9 @@ RETURN_STATUS(BC_STATUS_SUCCESS); } - if (a->len + b->len < BC_NUM_KARATSUBA_LEN - || a->len < BC_NUM_KARATSUBA_LEN + if (a->len < BC_NUM_KARATSUBA_LEN || b->len < BC_NUM_KARATSUBA_LEN + /* || a->len + b->len < BC_NUM_KARATSUBA_LEN - redundant check */ ) { size_t i, j, len;