From d0de25d731d4158ad7e20035e97536ec0ce92165 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 10 Sep 2010 23:52:42 +0000 Subject: [PATCH] use Py_REFCNT --- Python/ceval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Python/ceval.c b/Python/ceval.c index 2c7f57b56a1..51d9fbfb755 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -4394,7 +4394,7 @@ unicode_concatenate(PyObject *v, PyObject *w, return NULL; } - if (v->ob_refcnt == 2) { + if (Py_REFCNF(v) == 2) { /* In the common case, there are 2 references to the value * stored in 'variable' when the += is performed: one on the * value stack (in 'v') and one still stored in the @@ -4435,7 +4435,7 @@ unicode_concatenate(PyObject *v, PyObject *w, } } - if (v->ob_refcnt == 1 && !PyUnicode_CHECK_INTERNED(v)) { + if (Py_REFCNF(v) == 1 && !PyUnicode_CHECK_INTERNED(v)) { /* Now we own the last reference to 'v', so we can resize it * in-place. */