shithub: rgbds

Download patch

ref: e12e7b2acca41ad2aff9ca111d34dce32ecd1c7a
parent: f927c41abb317fd2d43606a05f2f1f538ed1084e
author: dbrotz <43593771+dbrotz@users.noreply.github.com>
date: Thu May 9 11:01:06 EDT 2019

Don't assign PC to macro symbols
Macros have nothing to do with the current PC, so this doesn't make any sense.
The value isn't ever used either.

--- a/src/asm/symbol.c
+++ b/src/asm/symbol.c
@@ -714,7 +714,6 @@
 	struct sSymbol *nsym = createNonrelocSymbol(tzSym);
 
 	if (nsym) {
-		nsym->nValue = nPC;
 		nsym->nType |= SYMF_MACRO | SYMF_DEFINED;
 		nsym->pScope = NULL;
 		nsym->ulMacroSize = ulNewMacroSize;