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;