mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Fix bug where (a * 5) + 4 was converted to a + 5 + 4.
This commit is contained in:
parent
4c08b7173a
commit
07590ea850
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ class foldconst(object):
|
|||
# (op b) + c -> op b + c
|
||||
# where op's priority is that of + or greater
|
||||
lval = child[0] = lval['ch'][0]
|
||||
lnt = '+'
|
||||
lnt = lval['nt']
|
||||
|
||||
# Addition of integers, strings, and lists is distributive
|
||||
# Addition of floats, vectors and rotations would be, except
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue