diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2023-06-17 00:28:49 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2023-06-17 00:28:49 +0200 |
commit | d6f98f214b3bd242f7404b68a4f9d777114fffa3 (patch) | |
tree | a5d1f6826634ac8bd5b6065c52a13222abceb2aa | |
parent | 550696d492c7389927d3f335bed11aa4decbcae6 (diff) | |
download | busybox-w32-d6f98f214b3bd242f7404b68a4f9d777114fffa3.tar.gz busybox-w32-d6f98f214b3bd242f7404b68a4f9d777114fffa3.tar.bz2 busybox-w32-d6f98f214b3bd242f7404b68a4f9d777114fffa3.zip |
shell/math: code shrink
function old new delta
evaluate_string 1432 1414 -18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | shell/math.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/math.c b/shell/math.c index 2959e57ea..56f866bf2 100644 --- a/shell/math.c +++ b/shell/math.c | |||
@@ -889,9 +889,9 @@ dbg(" numstack:%d val:%lld '%s'", (int)(numstackptr - numstack), numstackptr[ | |||
889 | */ | 889 | */ |
890 | if (math_state->evaluation_disabled & TOP_BIT_ULL) | 890 | if (math_state->evaluation_disabled & TOP_BIT_ULL) |
891 | goto err; /* >63 levels of ?: nesting not supported */ | 891 | goto err; /* >63 levels of ?: nesting not supported */ |
892 | math_state->evaluation_disabled <<= 1; | 892 | math_state->evaluation_disabled = |
893 | if (numstackptr[-1].val == 0) | 893 | (math_state->evaluation_disabled << 1) |
894 | math_state->evaluation_disabled |= 1; | 894 | | (numstackptr[-1].val == 0); |
895 | dbg("'?' entered: evaluation_disabled=%llx", EVAL_DISABLED); | 895 | dbg("'?' entered: evaluation_disabled=%llx", EVAL_DISABLED); |
896 | } | 896 | } |
897 | } /* if */ | 897 | } /* if */ |