diff options
| author | Leif Denby <leif@denby.eu> | 2014-01-08 16:21:16 +0000 |
|---|---|---|
| committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-01-23 22:02:09 +0100 |
| commit | e25b009c5281e627b2241b2c4b0bf7d615197cdb (patch) | |
| tree | f79b63023f8e7521a84d7012caa26c4d0325c9b8 /numpy/core | |
| parent | 67df668e175bfc12dac60d123c0887a42e0c82a2 (diff) | |
| download | numpy-e25b009c5281e627b2241b2c4b0bf7d615197cdb.tar.gz | |
BUG: Fix typos in conversion_utils
Unparenthesized logical expressions in if statements caused clang
compilation failure on OSX.
Diffstat (limited to 'numpy/core')
| -rw-r--r-- | numpy/core/src/multiarray/conversion_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/multiarray/conversion_utils.c b/numpy/core/src/multiarray/conversion_utils.c index 1f56f942c..d852229ac 100644 --- a/numpy/core/src/multiarray/conversion_utils.c +++ b/numpy/core/src/multiarray/conversion_utils.c @@ -774,7 +774,7 @@ PyArray_PyIntAsIntp(PyObject *o) * an exact check, since otherwise __index__ is used. */ #if !defined(NPY_PY3K) - if PyInt_CheckExact(o) { + if (PyInt_CheckExact(o)) { #if (NPY_SIZEOF_LONG <= NPY_SIZEOF_INTP) /* No overflow is possible, so we can just return */ return PyInt_AS_LONG(o); @@ -785,7 +785,7 @@ PyArray_PyIntAsIntp(PyObject *o) } else #endif - if PyLong_CheckExact(o) { + if (PyLong_CheckExact(o)) { #if (NPY_SIZEOF_LONG < NPY_SIZEOF_INTP) long_value = PyLong_AsLongLong(o); #else |
