updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / kiki / kiki-1.0.2-gcc42.patch
blob763e40392d6f9b4729a683ba2f9290f30a96e26f
1 --- SWIG/KikiPy_wrap.cpp
2 +++ SWIG/KikiPy_wrap.cpp
3 @@ -1206,7 +1206,7 @@ type_error:
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 + const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
9 c = doc ? strstr(doc, "swig_ptr: ") : 0;
10 if (c) {
11 c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
12 @@ -16309,11 +16309,11 @@ extern "C" {
13 swig_type_info **types_initial) {
14 size_t i;
15 for (i = 0; methods[i].ml_name; ++i) {
16 - char *c = methods[i].ml_doc;
17 + const char *c = methods[i].ml_doc;
18 if (c && (c = strstr(c, "swig_ptr: "))) {
19 int j;
20 swig_const_info *ci = 0;
21 - char *name = c + 10;
22 + const char *name = c + 10;
23 for (j = 0; const_table[j].type; ++j) {
24 if (strncmp(const_table[j].name, name,
25 strlen(const_table[j].name)) == 0) {