mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
fix issue 3668 by removing bool casts in numpy.h (#3669)
This commit is contained in:
parent
3a8d92308d
commit
978617f6b5
@ -170,10 +170,10 @@ struct npy_api {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool PyArray_Check_(PyObject *obj) const {
|
bool PyArray_Check_(PyObject *obj) const {
|
||||||
return (bool) PyObject_TypeCheck(obj, PyArray_Type_);
|
return PyObject_TypeCheck(obj, PyArray_Type_) != 0;
|
||||||
}
|
}
|
||||||
bool PyArrayDescr_Check_(PyObject *obj) const {
|
bool PyArrayDescr_Check_(PyObject *obj) const {
|
||||||
return (bool) PyObject_TypeCheck(obj, PyArrayDescr_Type_);
|
return PyObject_TypeCheck(obj, PyArrayDescr_Type_) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int (*PyArray_GetNDArrayCFeatureVersion_)();
|
unsigned int (*PyArray_GetNDArrayCFeatureVersion_)();
|
||||||
|
Loading…
Reference in New Issue
Block a user