Author: gsim
Date: Fri Oct 10 12:54:02 2014
New Revision: 1630827

URL: http://svn.apache.org/r1630827
Log:
PROTON-???: Fix the new python extension code to work with earlier pythons

Modified:
    qpid/proton/branches/examples/proton-c/bindings/python/cproton.i

Modified: qpid/proton/branches/examples/proton-c/bindings/python/cproton.i
URL: 
http://svn.apache.org/viewvc/qpid/proton/branches/examples/proton-c/bindings/python/cproton.i?rev=1630827&r1=1630826&r2=1630827&view=diff
==============================================================================
--- qpid/proton/branches/examples/proton-c/bindings/python/cproton.i (original)
+++ qpid/proton/branches/examples/proton-c/bindings/python/cproton.i Fri Oct 10 
12:54:02 2014
@@ -241,11 +241,13 @@ int pn_ssl_get_peer_hostname(pn_ssl_t *s
   #define pn_pyref_inspect pn_void_inspect
 
   static void pn_pyref_incref(void *object) {
-    Py_XINCREF(object);
+    PyObject* p = (PyObject*) object;
+    Py_XINCREF(p);
   }
 
   static void pn_pyref_decref(void *object) {
-    Py_XDECREF(object);
+    PyObject* p = (PyObject*) object;
+    Py_XDECREF(p);
   }
 
   static int pn_pyref_refcount(void *object) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to