1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-14 14:26:27 +00:00

Merge pull request #1789 from acqn/PPDiagnostics

[cc65] Fixed ICE with duplicate macro parameters
This commit is contained in:
Bob Andrews
2022-07-19 17:38:29 +02:00
committed by GitHub

View File

@@ -245,7 +245,7 @@ void AddMacroArg (Macro* M, const char* Arg)
for (I = 0; I < CollCount (&M->FormalArgs); ++I) { for (I = 0; I < CollCount (&M->FormalArgs); ++I) {
if (strcmp (CollAtUnchecked (&M->FormalArgs, I), Arg) == 0) { if (strcmp (CollAtUnchecked (&M->FormalArgs, I), Arg) == 0) {
/* Found */ /* Found */
Error ("Duplicate macro parameter: '%s'", Arg); PPError ("Duplicate macro parameter: '%s'", Arg);
break; break;
} }
} }