From 1b3e3633b98f57e53af718f2b5a28eec79078c39 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 16 Sep 2004 14:31:40 +0000 Subject: [PATCH] Fixed a C99ism git-svn-id: svn://svn.cc65.org/cc65/trunk@3183 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/preproc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cc65/preproc.c b/src/cc65/preproc.c index 5f8aaf027..5c0b9b83f 100644 --- a/src/cc65/preproc.c +++ b/src/cc65/preproc.c @@ -595,9 +595,13 @@ static void MacroCall (StrBuf* Target, Macro* M) /* Compare formal and actual argument count */ if (CollCount (&E.ActualArgs) != (unsigned) M->ArgCount) { + + StrBuf Arg = STATIC_STRBUF_INITIALIZER; + + /* Argument count mismatch */ PPError ("Macro argument count mismatch"); + /* Be sure to make enough empty arguments available */ - StrBuf Arg = STATIC_STRBUF_INITIALIZER; while (CollCount (&E.ActualArgs) < (unsigned) M->ArgCount) { ME_AppendActual (&E, &Arg); } -- 2.39.5