fix for 2.5, reported by Mike Romberg #1465867
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9049 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
003804a4c0
commit
1ae96f61fb
1 changed files with 1 additions and 1 deletions
|
|
@ -1075,7 +1075,7 @@ SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
|
|||
void *vptr = 0;
|
||||
|
||||
/* here we get the method pointer for callbacks */
|
||||
char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
|
||||
const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
|
||||
const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
|
||||
if (desc) {
|
||||
desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue