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:
parent
84a7f1b612
commit
e48b0c0d5b
1 changed files with 2 additions and 2 deletions
|
|
@ -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";
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue