Minor fixes to type handling.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@193 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-02-04 05:26:38 +00:00
commit e48b0c0d5b

View file

@ -492,9 +492,9 @@ PYTHON::get_pointer(char *iname, char *srcname, char *src, char *dest,
// If we're passing a void pointer, we give the pointer conversion a NULL
// pointer, otherwise pass in the expected type.
if (t->type == T_VOID) f << "0)) == -1) return " << ret << ";\n";
if (t->type == T_VOID) f << "0,1)) == -1) return " << ret << ";\n";
else
f << "SWIGTYPE" << t->print_mangle() << ")) == -1) return " << ret << ";\n";
f << "SWIGTYPE" << t->print_mangle() << ",1)) == -1) return " << ret << ";\n";
}