Skip to content

Commit

Permalink
Fix Python argument count checking when using -modern
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Diederen authored and wsfulton committed Mar 1, 2014
1 parent 09cfc53 commit 8998f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Modules/python.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2565,7 +2565,7 @@ class PYTHON:public Language {
Printf(parse_args, "if (!SWIG_Python_UnpackTuple(args,\"%s\",%d,%d,0)) SWIG_fail;\n", iname, num_fixed_arguments, tuple_arguments);
}
}
} else if (tuple_arguments > 0) {
} else {
Printf(parse_args, "if(!PyArg_UnpackTuple(args,(char *)\"%s\",%d,%d", iname, num_fixed_arguments, tuple_arguments);
Printv(parse_args, arglist, ")) SWIG_fail;\n", NIL);
}
Expand Down

0 comments on commit 8998f11

Please sign in to comment.