From: ishmal Date: Sat, 14 Apr 2007 12:19:14 +0000 (+0000) Subject: fix typecasts X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eb4aa26c96b0dbba8d1be56873b50b2a9eeb07a0;p=inkscape.git fix typecasts --- 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;