From 99304f5cdffcf5eb84940fb6b9d750c122d5c287 Mon Sep 17 00:00:00 2001 From: Stanislav Gromov Date: Sun, 18 Apr 2021 20:46:54 +0700 Subject: [PATCH] Pass variadic array cell arguments by temporarily storing them on the heap --- source/compiler/sc3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/compiler/sc3.c b/source/compiler/sc3.c index f54c545..e32403f 100644 --- a/source/compiler/sc3.c +++ b/source/compiler/sc3.c @@ -2338,7 +2338,7 @@ static int nesting=0; nest_stkusage++; } /* if */ } else if (lval.ident==iCONSTEXPR || lval.ident==iEXPRESSION - || lval.ident==iARRAYCHAR) + || (lval.ident==iARRAYCELL && !lvalue) || lval.ident==iARRAYCHAR) { /* fetch value if needed */ if (lval.ident==iARRAYCHAR)