From 1ae96f61fb2cadf49cc076638e48c4eda41c8cf0 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Tue, 11 Apr 2006 01:45:31 +0000 Subject: [PATCH] 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 --- Lib/python/pyrun.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/python/pyrun.swg b/Lib/python/pyrun.swg index b2bcf50ed..b7822ac9b 100644 --- a/Lib/python/pyrun.swg +++ b/Lib/python/pyrun.swg @@ -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;