diff options
author | Nico Schlömer <nico.schloemer@gmail.com> | 2017-08-28 16:38:19 +0200 |
---|---|---|
committer | Nico Schlömer <nico.schloemer@gmail.com> | 2017-08-28 16:38:19 +0200 |
commit | ebe630aa8c8f397b156751facb9058009a912e74 (patch) | |
tree | 04e4f19b7c84f906ed6ec25a1ee7e57e55f1abf6 /numpy/f2py/src/fortranobject.c | |
parent | df7340694bac9452359e80e68dc43f0f4e1c1b8d (diff) | |
download | numpy-ebe630aa8c8f397b156751facb9058009a912e74.tar.gz |
f2py: rename internal function
Diffstat (limited to 'numpy/f2py/src/fortranobject.c')
-rw-r--r-- | numpy/f2py/src/fortranobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/f2py/src/fortranobject.c b/numpy/f2py/src/fortranobject.c index 3b8eba649..96b08ea18 100644 --- a/numpy/f2py/src/fortranobject.c +++ b/numpy/f2py/src/fortranobject.c @@ -595,8 +595,8 @@ static int check_and_fix_dimensions(const PyArrayObject* arr, npy_intp *dims); static int -count_nonpos(const int rank, - const npy_intp *dims) { +count_negative_dimensions(const int rank, + const npy_intp *dims) { int i=0,r=0; while (i<rank) { if (dims[i] < 0) ++r; @@ -678,7 +678,7 @@ PyArrayObject* array_from_pyobj(const int type_num, || ((intent & F2PY_OPTIONAL) && (obj==Py_None)) ) { /* intent(cache), optional, intent(hide) */ - if (count_nonpos(rank,dims)) { + if (count_negative_dimensions(rank,dims) > 0) { int i; strcpy(mess, "failed to create intent(cache|hide)|optional array" "-- must have defined dimensions but got ("); |