Author: Antonio Cuni <[email protected]>
Branch: cpyext-nowrapper
Changeset: r92665:e088311fc427
Date: 2017-10-08 00:50 +0200
http://bitbucket.org/pypy/pypy/changeset/e088311fc427/

Log:    (antocuni, ronan): try to fix translation

diff --git a/pypy/module/cpyext/pyobject.py b/pypy/module/cpyext/pyobject.py
--- a/pypy/module/cpyext/pyobject.py
+++ b/pypy/module/cpyext/pyobject.py
@@ -25,7 +25,7 @@
     # Don't increase refcount for non-heaptypes
     flags = rffi.cast(lltype.Signed, pytype.c_tp_flags)
     if flags & Py_TPFLAGS_HEAPTYPE:
-        incref(pytype)
+        incref(rffi.cast(PyObject, pytype))
 
     size = pytype.c_tp_basicsize
     if pytype.c_tp_itemsize:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to