mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-02 22:21:21 +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:
parent
81da1b9beb
commit
9f81ba1e1f
|
@ -19535,6 +19535,8 @@ FUNCTION fixoperationorder$ (savea$)
|
||||||
|
|
||||||
IF nextc = 40 OR uboundlbound <> 0 THEN '(
|
IF nextc = 40 OR uboundlbound <> 0 THEN '(
|
||||||
|
|
||||||
|
uboundlbound = 0
|
||||||
|
|
||||||
'function or array?
|
'function or array?
|
||||||
IF id.arraytype <> 0 OR id.subfunc = 1 THEN
|
IF id.arraytype <> 0 OR id.subfunc = 1 THEN
|
||||||
'note: even if it's an array of UDTs, the bracketted index will follow immediately
|
'note: even if it's an array of UDTs, the bracketted index will follow immediately
|
||||||
|
@ -19752,6 +19754,7 @@ FUNCTION fixoperationorder$ (savea$)
|
||||||
END IF
|
END IF
|
||||||
|
|
||||||
IF c = 41 OR c = 125 THEN ')}
|
IF c = 41 OR c = 125 THEN ')}
|
||||||
|
uboundlbound = 0
|
||||||
b = b - 1
|
b = b - 1
|
||||||
|
|
||||||
IF b = 0 THEN
|
IF b = 0 THEN
|
||||||
|
|
Loading…
Reference in a new issue