Fix bug where (a * 5) + 4 was converted to a + 5 + 4.

This commit is contained in:
Sei Lisa 2015-02-27 19:12:22 +01:00
parent 4c08b7173a
commit 07590ea850

View file

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