mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-19 21:23:26 +08: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 {
|
||||
return (bool) PyObject_TypeCheck(obj, PyArray_Type_);
|
||||
return PyObject_TypeCheck(obj, PyArray_Type_) != 0;
|
||||
}
|
||||
bool PyArrayDescr_Check_(PyObject *obj) const {
|
||||
return (bool) PyObject_TypeCheck(obj, PyArrayDescr_Type_);
|
||||
return PyObject_TypeCheck(obj, PyArrayDescr_Type_) != 0;
|
||||
}
|
||||
|
||||
unsigned int (*PyArray_GetNDArrayCFeatureVersion_)();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user