Author: Armin Rigo <[email protected]>
Branch: cpyext-gc-support-2
Changeset: r82402:78f8c093d168
Date: 2016-02-22 18:16 +0100
http://bitbucket.org/pypy/pypy/changeset/78f8c093d168/
Log: refcounts don't fit in an 'int' (important after 8c6a66dcb994)
diff --git a/pypy/module/cpyext/test/test_cpyext.py
b/pypy/module/cpyext/test/test_cpyext.py
--- a/pypy/module/cpyext/test/test_cpyext.py
+++ b/pypy/module/cpyext/test/test_cpyext.py
@@ -646,8 +646,8 @@
static PyObject* foo_pi(PyObject* self, PyObject *args)
{
PyObject *true_obj = Py_True;
- int refcnt = true_obj->ob_refcnt;
- int refcnt_after;
+ Py_ssize_t refcnt = true_obj->ob_refcnt;
+ Py_ssize_t refcnt_after;
Py_INCREF(true_obj);
Py_INCREF(true_obj);
PyBool_Check(true_obj);
@@ -661,8 +661,8 @@
{
PyObject *true_obj = Py_True;
PyObject *tup = NULL;
- int refcnt = true_obj->ob_refcnt;
- int refcnt_after;
+ Py_ssize_t refcnt = true_obj->ob_refcnt;
+ Py_ssize_t refcnt_after;
tup = PyTuple_New(1);
Py_INCREF(true_obj);
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit