diff options
Diffstat (limited to 'Modules/_randommodule.c')
| -rw-r--r-- | Modules/_randommodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index 2e49db6ef7..2c0daef71f 100644 --- a/Modules/_randommodule.c +++ b/Modules/_randommodule.c @@ -415,7 +415,7 @@ random_jumpahead(RandomObject *self, PyObject *n) PyObject *remobj; unsigned long *mt, tmp, nonzero; - if (!PyInt_Check(n) && !PyLong_Check(n)) { + if (!_PyAnyInt_Check(n)) { PyErr_Format(PyExc_TypeError, "jumpahead requires an " "integer, not '%s'", Py_TYPE(n)->tp_name); |
