diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2007-04-14 12:19:14 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2007-04-14 12:19:14 +0000 |
| commit | 0bf0b24a100c1098c80552908db69903acc63a9d (patch) | |
| tree | 885ee1351d53567d69b778d9701164f40788deab /src/extension/script | |
| parent | change the logic so that the value is correctly read at launch of seltrans, a... (diff) | |
| download | inkscape-0bf0b24a100c1098c80552908db69903acc63a9d.tar.gz inkscape-0bf0b24a100c1098c80552908db69903acc63a9d.zip | |
fix typecasts
(bzr r2884)
Diffstat (limited to 'src/extension/script')
| -rw-r--r-- | src/extension/script/inkscape_py_wrap.cpp | 4 |
1 files 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; |
