You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2014/09/18 21:10:04 UTC

svn commit: r1626051 - /qpid/proton/trunk/proton-c/bindings/python/cproton.i

Author: astitcher
Date: Thu Sep 18 19:10:04 2014
New Revision: 1626051

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

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

Modified: qpid/proton/trunk/proton-c/bindings/python/cproton.i
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/bindings/python/cproton.i?rev=1626051&r1=1626050&r2=1626051&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/python/cproton.i (original)
+++ qpid/proton/trunk/proton-c/bindings/python/cproton.i Thu Sep 18 19:10:04 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-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org