don't use Py_None directly nor &PyType_Type
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7925 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
50ae3fe87e
commit
922d58ac19
9 changed files with 67 additions and 46 deletions
|
|
@ -66,8 +66,7 @@ SWIG_FromCharPtrAndSize(const char* carray, size_t size)
|
|||
return PyString_FromStringAndSize(carray, %numeric_cast(size,int));
|
||||
}
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
return SWIG_Py_Void();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue