diff options
author | Jaime Fernandez <jaime.frio@gmail.com> | 2015-04-23 22:29:49 -0700 |
---|---|---|
committer | Jaime Fernandez <jaime.frio@gmail.com> | 2015-04-23 22:29:49 -0700 |
commit | b4245a9af8c64025ee284c937e73ef9e2c0d7331 (patch) | |
tree | fa758af54d65965e35faeb15621b6120d1615a94 | |
parent | 98a9daeed84ea886c7994f2c179b0768356164a0 (diff) | |
download | numpy-b4245a9af8c64025ee284c937e73ef9e2c0d7331.tar.gz |
BUG: Fix wrong NULL checks in multiarray_tests.c.src
-rw-r--r-- | numpy/core/src/multiarray/multiarray_tests.c.src | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/src/multiarray/multiarray_tests.c.src b/numpy/core/src/multiarray/multiarray_tests.c.src index a80d3af19..9a2cd0c1b 100644 --- a/numpy/core/src/multiarray/multiarray_tests.c.src +++ b/numpy/core/src/multiarray/multiarray_tests.c.src @@ -155,7 +155,7 @@ test_neighborhood_iterator(PyObject* NPY_UNUSED(self), PyObject* args) for (i = 0; i < 2 * PyArray_NDIM(ax); ++i) { PyObject* bound; bound = PySequence_GetItem(b, i); - if (bounds == NULL) { + if (bound == NULL) { goto clean_itx; } if (!PyInt_Check(bound)) { @@ -314,7 +314,7 @@ test_neighborhood_iterator_oob(PyObject* NPY_UNUSED(self), PyObject* args) for (i = 0; i < 2 * PyArray_NDIM(ax); ++i) { PyObject* bound; bound = PySequence_GetItem(b1, i); - if (bounds == NULL) { + if (bound == NULL) { goto clean_itx; } if (!PyInt_Check(bound)) { @@ -338,7 +338,7 @@ test_neighborhood_iterator_oob(PyObject* NPY_UNUSED(self), PyObject* args) for (i = 0; i < 2 * PyArray_NDIM(ax); ++i) { PyObject* bound; bound = PySequence_GetItem(b2, i); - if (bounds == NULL) { + if (bound == NULL) { goto clean_itx; } if (!PyInt_Check(bound)) { @@ -762,7 +762,7 @@ array_indexing(PyObject *NPY_UNUSED(self), PyObject *args) if (mode == 1) { if (PySequence_SetItem(arr, i, op) < 0) { return NULL; - } + } Py_RETURN_NONE; } |