From bee75459472c7fdfdbf08d0caa390342c447c49d Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Fri, 13 Oct 2006 19:09:04 +0000 Subject: Fix ticket #341: part with 'c' arrays not being comparable to strings. --- numpy/core/src/arrayobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/src/arrayobject.c') 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) { -- cgit v1.2.1