diff options
author | mattip <matti.picus@gmail.com> | 2019-09-27 09:21:49 +0300 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-09-27 17:33:13 +0300 |
commit | 6108b5d1e138d07e3c9f2a4e3b1933749ad0e698 (patch) | |
tree | b654df9f65dadcde6dbf6be43489c36a0a681d44 /numpy/core/include | |
parent | 68bd6e359a6b0863acf39cad637e1444d78eabd0 (diff) | |
download | numpy-6108b5d1e138d07e3c9f2a4e3b1933749ad0e698.tar.gz |
BUG: properly define PyArray_DescrCheck
Diffstat (limited to 'numpy/core/include')
-rw-r--r-- | numpy/core/include/numpy/ndarrayobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/include/numpy/ndarrayobject.h b/numpy/core/include/numpy/ndarrayobject.h index 2cc7ced35..95e9cb060 100644 --- a/numpy/core/include/numpy/ndarrayobject.h +++ b/numpy/core/include/numpy/ndarrayobject.h @@ -23,7 +23,7 @@ extern "C" { /* C-API that requires previous API to be defined */ -#define PyArray_DescrCheck(op) (((PyObject*)(op))->ob_type==&PyArrayDescr_Type) +#define PyArray_DescrCheck(op) PyObject_TypeCheck(op, &PyArrayDescr_Type) #define PyArray_Check(op) PyObject_TypeCheck(op, &PyArray_Type) #define PyArray_CheckExact(op) (((PyObject*)(op))->ob_type == &PyArray_Type) |