diff options
| author | Christian Heimes <christian@cheimes.de> | 2007-12-19 02:37:44 +0000 |
|---|---|---|
| committer | Christian Heimes <christian@cheimes.de> | 2007-12-19 02:37:44 +0000 |
| commit | e93237dfcc4ee4feee62adafb4e7899487ca864b (patch) | |
| tree | b78abc265e7fb10639492f62e4ffd0ce1bcc67af /Modules/_randommodule.c | |
| parent | d586559c31b77938b514cec99f2f8b431a34dff5 (diff) | |
| download | cpython-git-e93237dfcc4ee4feee62adafb4e7899487ca864b.tar.gz | |
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
Diffstat (limited to 'Modules/_randommodule.c')
| -rw-r--r-- | Modules/_randommodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |
