From 3d8bfabe5a08660a7b72192c938d81aedc3b42c7 Mon Sep 17 00:00:00 2001 From: Jcw87 Date: Sat, 28 Jan 2023 20:53:37 -0800 Subject: [PATCH] lcf.py: fix wrong variable being checked for "@" --- tools/lcf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lcf.py b/tools/lcf.py index 6faeb8b055c..c75d96877bc 100644 --- a/tools/lcf.py +++ b/tools/lcf.py @@ -105,7 +105,7 @@ def lcf_generate(output_path,shiftable,map_file): if shiftable==True: for line in map_file: literals_found = [] - if type(symbol['name'])==str and line.find(' '+symbol['name']+' ')!=-1 and name[0] != "@" or type(symbol['label']) == str and line.find(' '+symbol['label']+' ')!=-1: + if type(symbol['name'])==str and line.find(' '+symbol['name']+' ')!=-1 and symbol['name'][0] != "@" or type(symbol['label']) == str and line.find(' '+symbol['label']+' ')!=-1: linesplit = line.split() if len(linesplit) > 3 and linesplit[2]!="NOT": if line.find("lit_")!=-1: