From 4dcf18eca78b4ef2823d9e6424acb013fc628cec Mon Sep 17 00:00:00 2001 From: acqn Date: Tue, 5 Jul 2022 22:22:49 +0800 Subject: [PATCH] Fixed ICE with duplicate macro parameters. --- src/cc65/macrotab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc65/macrotab.c b/src/cc65/macrotab.c index 09f0db50a..c04024dc8 100644 --- a/src/cc65/macrotab.c +++ b/src/cc65/macrotab.c @@ -245,7 +245,7 @@ void AddMacroArg (Macro* M, const char* Arg) for (I = 0; I < CollCount (&M->FormalArgs); ++I) { if (strcmp (CollAtUnchecked (&M->FormalArgs, I), Arg) == 0) { /* Found */ - Error ("Duplicate macro parameter: '%s'", Arg); + PPError ("Duplicate macro parameter: '%s'", Arg); break; } }