diff options
author | Travis Oliphant <oliphant@enthought.com> | 2008-05-11 03:08:06 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2008-05-11 03:08:06 +0000 |
commit | d6cbaddf167d3c99d4a0aca91fab241e2ae67f90 (patch) | |
tree | 52025c144e86fb2c827cd3513657c3cc13ddf791 /numpy/core/src/arraymethods.c | |
parent | 5345ed1fef98af2ee1253633134f6df47f3a7e04 (diff) | |
download | numpy-d6cbaddf167d3c99d4a0aca91fab241e2ae67f90.tar.gz |
Use EquivTypes instead of equality testing for data-type comparison.
Diffstat (limited to 'numpy/core/src/arraymethods.c')
-rw-r--r-- | numpy/core/src/arraymethods.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arraymethods.c b/numpy/core/src/arraymethods.c index e8fb3244e..4927f184b 100644 --- a/numpy/core/src/arraymethods.c +++ b/numpy/core/src/arraymethods.c @@ -685,7 +685,7 @@ array_cast(PyArrayObject *self, PyObject *args) return NULL; } - if (descr == self->descr) { + if (PyArray_EquivTypes(descr, self->descr)) { obj = _ARET(PyArray_NewCopy(self,NPY_ANYORDER)); Py_XDECREF(descr); return obj; |