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:
Sei Lisa 2019-02-25 19:59:59 +01:00
parent 985b9c4ef1
commit 73bc2c29a8

View file

@ -123,7 +123,7 @@ class inliner(object):
copy = node.copy()
oldscope = node.scope
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})
copy.scope = scope
self.symtab[oldscope][oldname]['NewSymbolName'] = copy.name
@ -207,7 +207,7 @@ class inliner(object):
self.retvar = retvar
self.retscope = scope
self.retlscope = scope
retlabel = self.newId('rtl', scope, {'Type':'l', 'Scope':scope,
retlabel = self.newId('rtl', scope, {'Kind':'l', 'Scope':scope,
'ref':0})
self.retlabel = retlabel