Skip to content

Commit 9f81ba1

Browse files
Update qb64.bas
Fix critical regression in `FUNCTION fixoperationorder$()` Using UBound/LBound in an expression would cause issues with other functions.
1 parent 81da1b9 commit 9f81ba1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/qb64.bas

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19535,6 +19535,8 @@ FUNCTION fixoperationorder$ (savea$)
1953519535

1953619536
IF nextc = 40 OR uboundlbound <> 0 THEN '(
1953719537

19538+
uboundlbound = 0
19539+
1953819540
'function or array?
1953919541
IF id.arraytype <> 0 OR id.subfunc = 1 THEN
1954019542
'note: even if it's an array of UDTs, the bracketted index will follow immediately
@@ -19752,6 +19754,7 @@ FUNCTION fixoperationorder$ (savea$)
1975219754
END IF
1975319755

1975419756
IF c = 41 OR c = 125 THEN ')}
19757+
uboundlbound = 0
1975519758
b = b - 1
1975619759

1975719760
IF b = 0 THEN

0 commit comments

Comments
 (0)