mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Fix a couple of slips that can cause crashes
'Type' is a string with a LSL type. 'Kind' is a single leter denoting the kind of identifier. We meant Kind. Twice.
This commit is contained in:
parent
985b9c4ef1
commit
73bc2c29a8
1 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,7 @@ class inliner(object):
|
||||||
copy = node.copy()
|
copy = node.copy()
|
||||||
oldscope = node.scope
|
oldscope = node.scope
|
||||||
oldname = node.name
|
oldname = node.name
|
||||||
copy.name = self.newId('lbl', scope, {'Type':'l', 'Scope':scope,
|
copy.name = self.newId('lbl', scope, {'Kind':'l', 'Scope':scope,
|
||||||
'ref':0})
|
'ref':0})
|
||||||
copy.scope = scope
|
copy.scope = scope
|
||||||
self.symtab[oldscope][oldname]['NewSymbolName'] = copy.name
|
self.symtab[oldscope][oldname]['NewSymbolName'] = copy.name
|
||||||
|
@ -207,7 +207,7 @@ class inliner(object):
|
||||||
self.retvar = retvar
|
self.retvar = retvar
|
||||||
self.retscope = scope
|
self.retscope = scope
|
||||||
self.retlscope = scope
|
self.retlscope = scope
|
||||||
retlabel = self.newId('rtl', scope, {'Type':'l', 'Scope':scope,
|
retlabel = self.newId('rtl', scope, {'Kind':'l', 'Scope':scope,
|
||||||
'ref':0})
|
'ref':0})
|
||||||
self.retlabel = retlabel
|
self.retlabel = retlabel
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue