summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-10-13 19:09:04 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-10-13 19:09:04 +0000
commitbee75459472c7fdfdbf08d0caa390342c447c49d (patch)
treef5150164ef9ecb36adf94dd54ed24182ae8da5d4 /numpy/core/src
parent81abf6377654cb96ee6e2dbe568de0ea5d4f4af1 (diff)
downloadnumpy-bee75459472c7fdfdbf08d0caa390342c447c49d.tar.gz
Fix ticket #341: part with 'c' arrays not being comparable to strings.
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/arrayobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index fa947ecbb..e03b47085 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -4445,7 +4445,7 @@ _strings_richcompare(PyArrayObject *self, PyArrayObject *other, int cmp_op,
int val;
/* Cast arrays to a common type */
- if (self->descr->type != other->descr->type) {
+ if (self->descr->type_num != other->descr->type_num) {
PyObject *new;
if (self->descr->type_num == PyArray_STRING && \
other->descr->type_num == PyArray_UNICODE) {