From 0bf0b24a100c1098c80552908db69903acc63a9d Mon Sep 17 00:00:00 2001 From: Bob Jamison Date: Sat, 14 Apr 2007 12:19:14 +0000 Subject: fix typecasts (bzr r2884) --- src/extension/script/inkscape_py_wrap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/extension/script/inkscape_py_wrap.cpp') 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; -- cgit v1.2.3