1 --- SWIG/KikiPy_wrap.cpp
2 +++ SWIG/KikiPy_wrap.cpp
3 @@ -1206,7 +1206,7 @@ type_error:
5 if (PyCFunction_Check(obj)) {
6 /* here we get the method pointer for callbacks */
7 - char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
8 + const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
9 c = doc ? strstr(doc, "swig_ptr: ") : 0;
11 c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
12 @@ -16309,11 +16309,11 @@ extern "C" {
13 swig_type_info **types_initial) {
15 for (i = 0; methods[i].ml_name; ++i) {
16 - char *c = methods[i].ml_doc;
17 + const char *c = methods[i].ml_doc;
18 if (c && (c = strstr(c, "swig_ptr: "))) {
20 swig_const_info *ci = 0;
21 - char *name = c + 10;
22 + const char *name = c + 10;
23 for (j = 0; const_table[j].type; ++j) {
24 if (strncmp(const_table[j].name, name,
25 strlen(const_table[j].name)) == 0) {