From e93237dfcc4ee4feee62adafb4e7899487ca864b Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 19 Dec 2007 02:37:44 +0000 Subject: #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. --- Modules/_randommodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Modules/_randommodule.c') diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index e439f1e945..ebad311af6 100644 --- a/Modules/_randommodule.c +++ b/Modules/_randommodule.c @@ -84,7 +84,7 @@ typedef struct { static PyTypeObject Random_Type; -#define RandomObject_Check(v) (Py_Type(v) == &Random_Type) +#define RandomObject_Check(v) (Py_TYPE(v) == &Random_Type) /* Random methods */ @@ -405,7 +405,7 @@ random_jumpahead(RandomObject *self, PyObject *n) if (!PyInt_Check(n) && !PyLong_Check(n)) { PyErr_Format(PyExc_TypeError, "jumpahead requires an " "integer, not '%s'", - Py_Type(n)->tp_name); + Py_TYPE(n)->tp_name); return NULL; } -- cgit v1.2.1