--- src/swig_runtime.h 2005-11-16 10:18:44.000000000 -0700 +++ /Users/bwaters/_today/swig_runtime.h 2006-08-30 21:14:40.000000000 -0600 @@ -1137,7 +1137,7 @@ obj = pyobj; if (PyCFunction_Check(obj)) { /* 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); c = doc ? strstr(doc, "swig_ptr: ") : 0; if (c) { c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;