Fixed bug in default argument handling.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@802 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-09-02 16:45:30 +00:00
commit 74f12225d3

View file

@ -406,7 +406,7 @@ PYTHON::create_function(char *name, char *iname, SwigType *d, ParmList *l) {
if ((tm = Swig_typemap_lookup((char*)"in",pt,pn,source,target,f))) {
Putc('O',parse_args);
Wrapper_add_localv(f, source, "PyObject *",source,0);
Wrapper_add_localv(f, source, "PyObject *",source, " = 0", 0);
Printf(arglist,"&%s",source);
if (i >= (pcount-numopt))
Printv(get_pointers, tab4, "if (", source, ")\n", 0);