summaryrefslogtreecommitdiff
path: root/numpy/f2py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2020-09-11 11:06:11 -0600
committerCharles Harris <charlesr.harris@gmail.com>2020-09-12 07:12:46 -0600
commit9fc177a2a24550cb539fd3577377f6ffc31cdd7b (patch)
tree231fd64718389f7bc9c61f383f2c42962ac0c64e /numpy/f2py
parent600dc06f46a57f58951fc8d6f5efec1f02296a91 (diff)
downloadnumpy-9fc177a2a24550cb539fd3577377f6ffc31cdd7b.tar.gz
MAINT: Replace PyNumber_Int by PyNumber_Long
Replace the npy_3kcompat macro PyNumber_Int by its definition.
Diffstat (limited to 'numpy/f2py')
-rw-r--r--numpy/f2py/cfuncs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/f2py/cfuncs.py b/numpy/f2py/cfuncs.py
index 17d67acca..35f77eec2 100644
--- a/numpy/f2py/cfuncs.py
+++ b/numpy/f2py/cfuncs.py
@@ -730,7 +730,7 @@ static int int_from_pyobj(int* v,PyObject *obj,const char *errmess) {
*v = (int)PyInt_AS_LONG(obj);
return 1;
}
- tmp = PyNumber_Int(obj);
+ tmp = PyNumber_Long(obj);
if (tmp) {
*v = PyInt_AS_LONG(tmp);
Py_DECREF(tmp);
@@ -762,7 +762,7 @@ static int long_from_pyobj(long* v,PyObject *obj,const char *errmess) {
*v = PyInt_AS_LONG(obj);
return 1;
}
- tmp = PyNumber_Int(obj);
+ tmp = PyNumber_Long(obj);
if (tmp) {
*v = PyInt_AS_LONG(tmp);
Py_DECREF(tmp);