diff options
-rw-r--r-- | src/bc/parse.c | 1 | ||||
-rw-r--r-- | tests/bc/errors.txt | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/bc/parse.c b/src/bc/parse.c index 01f5fd98..6e553199 100644 --- a/src/bc/parse.c +++ b/src/bc/parse.c @@ -1332,6 +1332,7 @@ static BcParseStatus bc_parse_expr_err(BcParse *p, uint8_t flags, flags & ~BC_PARSE_NOCALL); rprn = (prev == BC_INST_CALL); nexprs += 1; + flags &= ~(BC_PARSE_ARRAY); break; } diff --git a/tests/bc/errors.txt b/tests/bc/errors.txt index 7977a8c8..bb1d033f 100644 --- a/tests/bc/errors.txt +++ b/tests/bc/errors.txt @@ -233,6 +233,7 @@ bytes(1) + 4 4e-4.2 a[2^63] = 1 ibase = 100 +length(l[] + i[]) length("string") abs("string") abs(a[]) |