mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 19:29:45 +00:00
Fixed a C99ism
git-svn-id: svn://svn.cc65.org/cc65/trunk@3183 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
06b57e6e7e
commit
1b3e3633b9
@ -595,9 +595,13 @@ static void MacroCall (StrBuf* Target, Macro* M)
|
||||
|
||||
/* Compare formal and actual argument count */
|
||||
if (CollCount (&E.ActualArgs) != (unsigned) M->ArgCount) {
|
||||
PPError ("Macro argument count mismatch");
|
||||
/* Be sure to make enough empty arguments available */
|
||||
|
||||
StrBuf Arg = STATIC_STRBUF_INITIALIZER;
|
||||
|
||||
/* Argument count mismatch */
|
||||
PPError ("Macro argument count mismatch");
|
||||
|
||||
/* Be sure to make enough empty arguments available */
|
||||
while (CollCount (&E.ActualArgs) < (unsigned) M->ArgCount) {
|
||||
ME_AppendActual (&E, &Arg);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user