Always cast the separator to string when expanding

If it is a key, it would otherwise cause an error on expansion.
This commit is contained in:
Sei Lisa 2018-11-19 14:07:42 +01:00
parent 1ebd029931
commit e5c2c4057e

View file

@ -210,7 +210,7 @@ def OptimizeFunc(self, parent, index):
newnode = nr(nt='+', t='string', SEF=True, newnode = nr(nt='+', t='string', SEF=True,
ch=[CastDL2S(self, child[0], i), ch=[CastDL2S(self, child[0], i),
nr(nt='+', t='string', SEF=True, nr(nt='+', t='string', SEF=True,
ch=[child[1], newnode] ch=[self.Cast(child[1], 'string'), newnode]
) )
]) ])
parent[index] = newnode parent[index] = newnode