From ff1bd7a80d58140a02b9cf116438d2d04946fb2a Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 13 Jun 2006 19:24:54 +0000 Subject: [PATCH] Vladimir Menshakov patch for compiling wrappers with python-2.5 alpha. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9158 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/pyinit.swg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/python/pyinit.swg b/Lib/python/pyinit.swg index 670de409b..e6109b7bd 100644 --- a/Lib/python/pyinit.swg +++ b/Lib/python/pyinit.swg @@ -226,11 +226,11 @@ SWIG_Python_FixMethods(PyMethodDef *methods, swig_type_info **types_initial) { size_t i; for (i = 0; methods[i].ml_name; ++i) { - char *c = methods[i].ml_doc; + const char *c = methods[i].ml_doc; if (c && (c = strstr(c, "swig_ptr: "))) { int j; swig_const_info *ci = 0; - char *name = c + 10; + const char *name = c + 10; for (j = 0; const_table[j].type; ++j) { if (strncmp(const_table[j].name, name, strlen(const_table[j].name)) == 0) {