From 73bc2c29a8476d8642bac5eba290260a6845b6c0 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Mon, 25 Feb 2019 19:59:59 +0100 Subject: [PATCH] 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. --- lslopt/lslinliner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lslopt/lslinliner.py b/lslopt/lslinliner.py index 20411ee..0c4dfb9 100644 --- a/lslopt/lslinliner.py +++ b/lslopt/lslinliner.py @@ -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