Fixed default argument handling bug reported by Michael Scharf.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@929 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-10-21 01:41:13 +00:00
commit 0d716c43c2

View file

@ -157,7 +157,6 @@ SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
int newref = 0;
if (!obj || (obj == Py_None)) {
*ptr = 0;
return 0;
}
#ifdef SWIG_COBJECT_TYPES