Skip to content

Commit

Permalink
Merge pull request #14687 from charris/backport-14605
Browse files Browse the repository at this point in the history
BUG: properly define PyArray_DescrCheck
  • Loading branch information
charris committed Oct 12, 2019
2 parents 51826db + 7758dd1 commit acb10b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/core/include/numpy/ndarrayobject.h
Expand Up @@ -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)
Expand Down

0 comments on commit acb10b0

Please sign in to comment.