diff -ru swig-1.3.29/Lib/python/pyinit.swg swig-1.3.29_fixed/Lib/python/pyinit.swg --- swig-1.3.29/Lib/python/pyinit.swg 2006-02-02 23:48:56.000000000 +0000 +++ swig-1.3.29_fixed/Lib/python/pyinit.swg 2006-09-05 10:30:18.000000000 +0100 @@ -226,11 +226,11 @@ 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) { diff -ru swig-1.3.29/Lib/python/pyrun.swg swig-1.3.29_fixed/Lib/python/pyrun.swg --- swig-1.3.29/Lib/python/pyrun.swg 2006-03-07 00:35:17.000000000 +0000 +++ swig-1.3.29_fixed/Lib/python/pyrun.swg 2006-09-05 10:30:03.000000000 +0100 @@ -1075,7 +1075,7 @@ 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;