Minor cleanups; no functional changes.

lslcleanup: Variables renamed, order changed, comments added.

Other changes: remove semicolon at end of sentence, use self.Cast instead of creating a CAST node on the fly.
This commit is contained in:
Sei Lisa 2017-09-22 14:17:56 +02:00
parent 0a7e2a9e1d
commit a0d4c77081
3 changed files with 24 additions and 24 deletions

View file

@ -195,10 +195,7 @@ def OptimizeFunc(self, parent, index):
node['nt'] = 'CAST'
del child[1]
del node['name']
child[0] = {'nt':'CAST', 't':'string',
'ch':[child[0]]}
if 'SEF' in child[0]['ch'][0]:
child[0]['SEF'] = True
child[0] = self.Cast(child[0], 'string')
return
# Check for type incompatibility or index out of range