From: uz Date: Mon, 13 Jun 2011 08:55:48 +0000 (+0000) Subject: Fixed the same problem as in the last change for the final token of .define X-Git-Tag: V2.13.3~409 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4709e8251e1753c2783246c957c1709e1f47e28a;p=cc65 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 --- 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;