diff options
Diffstat (limited to 'numpy')
| -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.\"); |
