summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-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) {