diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2021-05-23 23:36:59 +0300 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2021-05-23 23:36:59 +0300 |
commit | eae806ce8005b608a28debb12825e4b0b5ee374c (patch) | |
tree | 640f8468a785e63d85429c027869548dfbab60d2 | |
parent | 5942b33264bf1046074bbd72939ab38e5b6d66af (diff) | |
download | numpy-eae806ce8005b608a28debb12825e4b0b5ee374c.tar.gz |
Apply reviewer nit
-rw-r--r-- | numpy/f2py/cfuncs.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/f2py/cfuncs.py b/numpy/f2py/cfuncs.py index 4d3ce9088..de8b0aad5 100644 --- a/numpy/f2py/cfuncs.py +++ b/numpy/f2py/cfuncs.py @@ -670,7 +670,6 @@ static int string_from_pyobj(string *str, int *len, const string inistr, PyObject *obj, const char *errmess) { - PyArrayObject *arr = NULL; PyObject *tmp = NULL; string buf = NULL; npy_intp n = -1; @@ -683,7 +682,7 @@ fprintf(stderr,\"string_from_pyobj(str='%s',len=%d,inistr='%s',obj=%p)\\n\", buf = inistr; } else if (PyArray_Check(obj)) { - arr = (PyArrayObject *)obj; + PyArrayObject *arr = (PyArrayObject *)obj; if (!ISCONTIGUOUS(arr)) { PyErr_SetString(PyExc_ValueError, \"array object is non-contiguous.\"); |