Forgot a SEF case.

This commit is contained in:
Sei Lisa 2014-08-07 22:09:00 +02:00
parent a03e0261ff
commit 954b8d81d4

View file

@ -113,7 +113,7 @@ class optimizer(renamer, deadcode):
# this enables some optimizations.
#if node['t'] != 'key': # key constants not possible
parent[index] = {'nt':'CONST', 't':node['t'],
parent[index] = {'nt':'CONST', 't':node['t'], 'SEF':True,
'value':lslfuncs.typecast(
child[0]['value'], self.LSL2PythonType[node['t']])}
return