1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-01 02:10:38 +00:00

Update qb64.bas

Fix critical regression in `FUNCTION fixoperationorder$()`

Using UBound/LBound in an expression would cause issues with other functions.
This commit is contained in:
Fellippe Heitor 2021-11-06 17:55:48 -03:00
parent 81da1b9beb
commit 9f81ba1e1f

View file

@ -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