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:
parent
b78392832f
commit
769b26d575
4 changed files with 27 additions and 2 deletions
|
|
@ -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($$);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue