diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2023-06-26 11:08:40 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2023-06-26 11:08:40 +0200 |
commit | e619a25a551ac6a5f215005166371074a9e2816f (patch) | |
tree | b989f18f6f49d7abf707e36f342bea1633ad3dc4 | |
parent | 5d8f8570c0c4220bfadb6d24d4fbc3e722d44802 (diff) | |
download | busybox-w32-e619a25a551ac6a5f215005166371074a9e2816f.tar.gz busybox-w32-e619a25a551ac6a5f215005166371074a9e2816f.tar.bz2 busybox-w32-e619a25a551ac6a5f215005166371074a9e2816f.zip |
shell/math: improve comments
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | shell/math.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/math.c b/shell/math.c index 0426e2daa..9e81d604c 100644 --- a/shell/math.c +++ b/shell/math.c | |||
@@ -856,9 +856,11 @@ evaluate_string(arith_state_t *math_state, const char *expr) | |||
856 | */ | 856 | */ |
857 | prec = PREC(op); | 857 | prec = PREC(op); |
858 | if (prec != PREC_LPAREN && prec < UNARYPREC) { | 858 | if (prec != PREC_LPAREN && prec < UNARYPREC) { |
859 | /* binary, ternary or RPAREN */ | 859 | /* Binary, ternary or RPAREN */ |
860 | if (lasttok != TOK_VALUE) { | 860 | if (lasttok != TOK_VALUE) { |
861 | /* must be preceded by a num (example?) */ | 861 | /* Must be preceded by a value. |
862 | * $((2 2 + * 3)) would be accepted without this. | ||
863 | */ | ||
862 | goto syntax_err; | 864 | goto syntax_err; |
863 | } | 865 | } |
864 | /* if op is RPAREN: | 866 | /* if op is RPAREN: |