From 765d18e3ba0dd2d92f2007e62ad3465b533903c7 Mon Sep 17 00:00:00 2001 From: Keycatowo Date: Thu, 18 Apr 2024 15:14:08 +0800 Subject: [PATCH] fix: Fix variable name error in varUseError function In the `varUseError` function, the print statement incorrectly used the variable name `lineNumber`, which is used by other Error functions, instead of the provided parameter `varName`. --- compileExcelASM16.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compileExcelASM16.py b/compileExcelASM16.py index b1373a4..79132b5 100644 --- a/compileExcelASM16.py +++ b/compileExcelASM16.py @@ -45,7 +45,7 @@ def varSequenceError(lineNumber): compileResults() def varUseError(varName): - print(RED + "\tVariable cannot be used like label, var: " + str(lineNumber) + ENDCOLOR) + print(RED + "\tVariable cannot be used like label, var: " + str(varName) + ENDCOLOR) compileResults() def orgError(lineNumber):