Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 85c5317dcbb895981af62f3dae7c317f > files > 1

cel-1.0-1mdv2007.1.src.rpm

--- cel-src-1.0/plugins/behaviourlayer/python/blcel.cpp.orig	2007-01-22 07:24:15.000000000 -0500
+++ cel-src-1.0/plugins/behaviourlayer/python/blcel.cpp	2007-01-22 07:28:27.000000000 -0500
@@ -2068,7 +2068,7 @@ SWIG_Python_ConvertFunctionPtr(PyObject 
     void *vptr = 0;
     
     /* here we get the method pointer for callbacks */
-    char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
+    const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
     const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
     if (desc) {
       desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
@@ -3040,7 +3040,7 @@ SWIGINTERN int
 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
 {
   if (PyString_Check(obj)) {
-    char *cstr; int len;
+    char *cstr; Py_ssize_t len;
     PyString_AsStringAndSize(obj, &cstr, &len);
     if (cptr)  {
       if (alloc) {
@@ -68106,11 +68106,11 @@ extern "C" {
     swig_type_info **types_initial) {
     size_t i;
     for (i = 0; methods[i].ml_name; ++i) {
-      char *c = methods[i].ml_doc;
+      const char *c = methods[i].ml_doc;
       if (c && (c = strstr(c, "swig_ptr: "))) {
         int j;
         swig_const_info *ci = 0;
-        char *name = c + 10;
+        const char *name = c + 10;
         for (j = 0; const_table[j].type; ++j) {
           if (strncmp(const_table[j].name, name, 
               strlen(const_table[j].name)) == 0) {