Skip to content

Commit

Permalink
STY: Use a more descriptive variable name
Browse files Browse the repository at this point in the history
Co-Authored-By: Charles Harris <charlesr.harris@gmail.com>
  • Loading branch information
BvB93 and charris committed Sep 2, 2021
1 parent 11ae8fe commit bb3e407
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions numpy/core/src/multiarray/scalartypes.c.src
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,7 @@ static PyObject *
#else
npy_@name@ val = PyArrayScalar_VAL(self, @Name@);
#endif
PyObject *o;
PyObject *ret;

if (npy_isnan(val)) {
Py_RETURN_FALSE;
Expand All @@ -1931,9 +1931,9 @@ static PyObject *
Py_RETURN_FALSE;
}

o = (npy_floor@c@(val) == val) ? Py_True : Py_False;
Py_INCREF(o);
return o;
ret = (npy_floor@c@(val) == val) ? Py_True : Py_False;
Py_INCREF(ret);
return ret;
}
/**end repeat**/

Expand Down

0 comments on commit bb3e407

Please sign in to comment.