From 9f81ba1e1f937b13aa33a2c4e5920a11e1a76466 Mon Sep 17 00:00:00 2001 From: Fellippe Heitor Date: Sat, 6 Nov 2021 17:55:48 -0300 Subject: [PATCH] Update qb64.bas Fix critical regression in `FUNCTION fixoperationorder$()` Using UBound/LBound in an expression would cause issues with other functions. --- source/qb64.bas | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/qb64.bas b/source/qb64.bas index a5b770c48..b37975149 100644 --- a/source/qb64.bas +++ b/source/qb64.bas @@ -19535,6 +19535,8 @@ FUNCTION fixoperationorder$ (savea$) IF nextc = 40 OR uboundlbound <> 0 THEN '( + uboundlbound = 0 + 'function or array? IF id.arraytype <> 0 OR id.subfunc = 1 THEN 'note: even if it's an array of UDTs, the bracketted index will follow immediately @@ -19752,6 +19754,7 @@ FUNCTION fixoperationorder$ (savea$) END IF IF c = 41 OR c = 125 THEN ')} + uboundlbound = 0 b = b - 1 IF b = 0 THEN