From 4709e8251e1753c2783246c957c1709e1f47e28a Mon Sep 17 00:00:00 2001 From: uz Date: Mon, 13 Jun 2011 08:55:48 +0000 Subject: [PATCH] Fixed the same problem as in the last change for the final token of .define style macros. git-svn-id: svn://svn.cc65.org/cc65/trunk@5052 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ca65/macro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ca65/macro.c b/src/ca65/macro.c index bb5774b19..d56a4c48c 100644 --- a/src/ca65/macro.c +++ b/src/ca65/macro.c @@ -658,7 +658,7 @@ static int MacExpand (void* Data) /* Ok, use token from parameter list, but don't use its line info */ TokSet (Mac->ParamExp, LI_SLOT_INV); - + /* Set pointer to next token */ Mac->ParamExp = Mac->ParamExp->Next; @@ -737,7 +737,7 @@ static int MacExpand (void* Data) if (Mac->Final) { /* Set the final token and remove it */ - TokSet (Mac->Final, Mac->LISlot); + TokSet (Mac->Final, LI_SLOT_INV); FreeTokNode (Mac->Final); Mac->Final = 0; -- 2.39.5