Ticket #13213: patch-py-wrap

File patch-py-wrap, 804 bytes (added by tomaz.solc@…, 16 years ago)
Line 
1--- src/extension/script/inkscape_py_wrap.cpp.orig      2007-11-17 14:23:29.000000000 +0000
2+++ src/extension/script/inkscape_py_wrap.cpp   2007-01-16 02:45:24.000000000 +0000
3@@ -802,7 +802,7 @@
4     obj = pyobj;
5     if (PyCFunction_Check(obj)) {
6       /* here we get the method pointer for callbacks */
7-      char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
8+      char *doc = (char *) (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
9       c = doc ? strstr(doc, "swig_ptr: ") : 0;
10       if (c) {
11        c += 10;
12@@ -977,7 +977,7 @@
13                       swig_type_info **types_initial) {
14   int i;
15   for (i = 0; methods[i].ml_name; ++i) {
16-    char *c = methods[i].ml_doc;
17+    char *c = (char *) methods[i].ml_doc;
18     if (c && (c = strstr(c, "swig_ptr: "))) {
19       int j;
20       swig_const_info *ci = 0;