1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-07 18:00:24 +00:00

Fix parsing of corner-case negative exponents, such as 1-(1+r) ^ -y

This commit is contained in:
Luke Ceddia 2016-08-11 21:40:23 +10:00
parent 2576cbc7f4
commit fc05f7d925

View file

@ -17735,8 +17735,9 @@ FUNCTION fixoperationorder$ (savea$)
IF pownegused THEN
b = 0
i = 0
DO WHILE i <= n
DO
i = i + 1
IF i > n THEN EXIT DO
c = ASC(getelement(a$, i))
IF c = 41 OR c = 125 THEN b = b - 1
IF (c = 123 OR c = 125) AND b <> 0 THEN