Fix bug with macro args in symbol names

If a macro arg came in the middle of a symbol or at the end, e.g. "SYM\1", it would say that the symbol was not defined. This was because it wasn't looking up the macro arg's value correctly.
This commit is contained in:
YamaArashi committed 2015-07-25 21:20:44 -07:00
1 parent 6438ae2591
commit 37b615f070
1 file changed
+1 -1
+1 -1
View File
@@ -161,7 +161,7 @@ ParseSymbol(char *src, ULONG size)
if (*src == '@')
marg = sym_FindMacroArg(-1);
else if (*src >= '0' && *src <= '9')
marg = sym_FindMacroArg(*src);
marg = sym_FindMacroArg(*src - '0');
else {
fatalerror("Malformed ID");
return (0);