Verified Commit 55b1254d authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: fix cast

parent 30179d3f
......@@ -285,7 +285,7 @@ namespace eigenpy
template<typename MatType>
void* EigenFromPy<MatType>::convertible(PyArrayObject* pyArray)
{
if(!call_PyArray_Check(pyArray))
if(!call_PyArray_Check(reinterpret_cast<PyObject*>(pyArray)))
return 0;
if(!np_type_is_convertible_into_scalar<Scalar>(EIGENPY_GET_PY_ARRAY_TYPE(pyArray)))
......@@ -476,7 +476,7 @@ namespace eigenpy
/// \brief Determine if pyObj can be converted into a MatType object
static void* convertible(PyArrayObject * pyArray)
{
if(!call_PyArray_Check(pyArray))
if(!call_PyArray_Check(reinterpret_cast<PyObject*>(pyArray)))
return 0;
if(!PyArray_ISWRITEABLE(pyArray))
return 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment