Merge pull request #105 from alliedmodders/fix-varargs

Fix bug in variadic argument parsing. (bug 6195)
This commit is contained in:
David Anderson 2014-07-21 23:12:26 -07:00
commit b6d8cb9fcf
2 changed files with 8 additions and 1 deletions

View File

@ -3395,7 +3395,7 @@ int parse_decl(declinfo_t *decl, int flags)
decl->type.size = 1;
// Match early varargs as old decl.
if (matchtoken(tELLIPS))
if (lexpeek(tELLIPS))
return parse_old_decl(decl, flags);
// Must attempt to match const first, since it's a common prefix.

View File

@ -0,0 +1,7 @@
stock MyFormat( const String:formatString[], ... )
{
}
public main()
{
}