@@ -20,7 +20,7 @@ namespace eigenpy
2020 {
2121 typedef typename SimilarMatrixType::Scalar Scalar;
2222
23- PyArrayObject * pyArray = (PyArrayObject*) call_PyArray_SimpleNew (nd , shape,
23+ PyArrayObject * pyArray = (PyArrayObject*) call_PyArray_SimpleNew (static_cast < int >(nd) , shape,
2424 NumpyEquivalentType<Scalar>::type_code);
2525
2626 // Copy data
@@ -42,7 +42,7 @@ namespace eigenpy
4242
4343 if (NumpyType::sharedMemory ())
4444 {
45- PyArrayObject * pyArray = (PyArrayObject*) call_PyArray_New (nd , shape,
45+ PyArrayObject * pyArray = (PyArrayObject*) call_PyArray_New (static_cast < int >(nd) , shape,
4646 NumpyEquivalentType<Scalar>::type_code,
4747 mat.data (),
4848 NPY_ARRAY_MEMORY_CONTIGUOUS | NPY_ARRAY_ALIGNED);
@@ -77,7 +77,7 @@ namespace eigenpy
7777
7878 if (NumpyType::sharedMemory ())
7979 {
80- PyArrayObject * pyArray = (PyArrayObject*) call_PyArray_New (nd , shape,
80+ PyArrayObject * pyArray = (PyArrayObject*) call_PyArray_New (static_cast < int >(nd) , shape,
8181 NumpyEquivalentType<Scalar>::type_code,
8282 const_cast <SimilarMatrixType &>(mat.derived ()).data (),
8383 NPY_ARRAY_MEMORY_CONTIGUOUS_RO | NPY_ARRAY_ALIGNED);
0 commit comments