Skip to content
Snippets Groups Projects
Verified Commit 55b1254d authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: fix cast

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