From 2cca835ae908f44619f7cfafb5ae9e91b665274e Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Mon, 23 Jan 2017 01:18:50 +0100 Subject: [PATCH] Fix evaluation order for vectors, rotations and lists. Vectors, rotations and lists are evaluated left-to-right. --- lslopt/lslfoldconst.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lslopt/lslfoldconst.py b/lslopt/lslfoldconst.py index 3f53bcb..7c98bac 100644 --- a/lslopt/lslfoldconst.py +++ b/lslopt/lslfoldconst.py @@ -1049,7 +1049,7 @@ class foldconst(object): if nt in ('VECTOR', 'ROTATION', 'LIST'): isconst = True issef = True - for idx in xrange(len(child)-1, -1, -1): + for idx in xrange(len(child)): self.FoldTree(child, idx) if child[idx]['nt'] != 'CONST': isconst = False