shithub: rgbds

Download patch

ref: a64d725a8d9be9686a7495e16209ae9ea86b6cbb
parent: 80e2129f2219d6a458591117c91320a8a4fb4c8d
author: stag019 <[email protected]>
date: Tue Nov 4 13:09:22 EST 2014

The actual way the macro bug should have been fixed.

--- a/src/asm/fstack.c
+++ b/src/asm/fstack.c
@@ -284,7 +284,7 @@
 		pCurrentMacro = sym;
 		CurrentFlexHandle =
 		    yy_scan_bytes(pCurrentMacro->pMacro,
-		    (pCurrentMacro->ulMacroSize < MAXSYMLEN ? MAXSYMLEN : pCurrentMacro->ulMacroSize)); //Dirty hack to fix small macros using long label names.
+		    strlen(pCurrentMacro->pMacro));
 		yy_switch_to_buffer(CurrentFlexHandle);
 		return (1);
 	} else