diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2018-07-31 09:09:36 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-31 09:09:36 +0300 |
| commit | 48c8bf21f97aeb124dbd48bf2bdec1ab4ebc5202 (patch) | |
| tree | 6678ae7f56e368ef192b8e0f5988f7c317dbb246 /Modules/dlmodule.c | |
| parent | dc9039da239ee572eaaf56e4a026be1fc4d74e24 (diff) | |
| download | cpython-git-48c8bf21f97aeb124dbd48bf2bdec1ab4ebc5202.tar.gz | |
[2.7] bpo-34234: Use _PyAnyInt_Check() and _PyAnyInt_CheckExact(). (GH-8479)
Diffstat (limited to 'Modules/dlmodule.c')
| -rw-r--r-- | Modules/dlmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/dlmodule.c b/Modules/dlmodule.c index 7a6686e3a6..3f15048700 100644 --- a/Modules/dlmodule.c +++ b/Modules/dlmodule.c @@ -107,7 +107,7 @@ dl_call(dlobject *xp, PyObject *args) } for (i = 1; i < n; i++) { PyObject *v = PyTuple_GetItem(args, i); - if (PyInt_Check(v) || PyLong_Check(v)) { + if (_PyAnyInt_Check(v)) { alist[i-1] = PyInt_AsLong(v); if (alist[i-1] == -1 && PyErr_Occurred()) return NULL; |
