diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index 039623e62..d570ebd31 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -2565,7 +2565,7 @@ public: 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); }