Fix %varargs when used with a numerical argument, which was emitting one more optional argument than documented

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12657 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2011-05-06 20:56:42 +00:00
commit 769b26d575
4 changed files with 27 additions and 2 deletions

View file

@ -2628,8 +2628,7 @@ varargs_parms : parms { $$ = $1; }
$$ = 0;
} else {
$$ = Copy($3);
Setattr($$,"name","VARARGS_SENTINEL");
for (i = 0; i < n; i++) {
for (i = 0; i < n-1; i++) {
p = Copy($3);
set_nextSibling(p,$$);
Delete($$);