diff options
Diffstat (limited to 'numpy/f2py/cfuncs.py')
-rw-r--r-- | numpy/f2py/cfuncs.py | 4 |
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); |