diff options
author | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-09-02 21:05:54 +0200 |
---|---|---|
committer | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-09-02 21:05:54 +0200 |
commit | bb3e4077a32078deb31d7c31034303303fc268f4 (patch) | |
tree | ce1e3d8df0b41df57dc81c5a4eaa2d353c3475b9 /numpy/core/src | |
parent | 11ae8fef08251d19207f1e7a08bca580298514b4 (diff) | |
download | numpy-bb3e4077a32078deb31d7c31034303303fc268f4.tar.gz |
STY: Use a more descriptive variable name
Co-Authored-By: Charles Harris <charlesr.harris@gmail.com>
Diffstat (limited to 'numpy/core/src')
-rw-r--r-- | numpy/core/src/multiarray/scalartypes.c.src | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/src/multiarray/scalartypes.c.src b/numpy/core/src/multiarray/scalartypes.c.src index c9f3341fe..740ec8cc2 100644 --- a/numpy/core/src/multiarray/scalartypes.c.src +++ b/numpy/core/src/multiarray/scalartypes.c.src @@ -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; @@ -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**/ |