We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a8d923 commit 978617fCopy full SHA for 978617f
include/pybind11/numpy.h
@@ -170,10 +170,10 @@ struct npy_api {
170
}
171
172
bool PyArray_Check_(PyObject *obj) const {
173
- return (bool) PyObject_TypeCheck(obj, PyArray_Type_);
+ return PyObject_TypeCheck(obj, PyArray_Type_) != 0;
174
175
bool PyArrayDescr_Check_(PyObject *obj) const {
176
- return (bool) PyObject_TypeCheck(obj, PyArrayDescr_Type_);
+ return PyObject_TypeCheck(obj, PyArrayDescr_Type_) != 0;
177
178
179
unsigned int (*PyArray_GetNDArrayCFeatureVersion_)();
0 commit comments