From eb4aa26c96b0dbba8d1be56873b50b2a9eeb07a0 Mon Sep 17 00:00:00 2001 From: ishmal Date: Sat, 14 Apr 2007 12:19:14 +0000 Subject: [PATCH] fix typecasts --- src/extension/script/inkscape_py_wrap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension/script/inkscape_py_wrap.cpp b/src/extension/script/inkscape_py_wrap.cpp index 28eeccb80..49afe508c 100644 --- a/src/extension/script/inkscape_py_wrap.cpp +++ b/src/extension/script/inkscape_py_wrap.cpp @@ -802,7 +802,7 @@ type_error: obj = pyobj; if (PyCFunction_Check(obj)) { /* here we get the method pointer for callbacks */ - char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); + char *doc = (char *) (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); c = doc ? strstr(doc, "swig_ptr: ") : 0; if (c) { c += 10; @@ -977,7 +977,7 @@ SWIG_Python_FixMethods(PyMethodDef *methods, swig_type_info **types_initial) { int i; for (i = 0; methods[i].ml_name; ++i) { - char *c = methods[i].ml_doc; + char *c = (char *) methods[i].ml_doc; if (c && (c = strstr(c, "swig_ptr: "))) { int j; swig_const_info *ci = 0; -- 2.30.2