Unverified Commit 319b4ed2 authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
Browse files

Merge pull request #173 from gabrielebndn/topic/fixwarnings

Remove silly warnings
parents 2bd99645 c2948738
......@@ -20,7 +20,7 @@ namespace eigenpy
{
typedef typename SimilarMatrixType::Scalar Scalar;
PyArrayObject * pyArray = (PyArrayObject*) call_PyArray_SimpleNew(nd, shape,
PyArrayObject * pyArray = (PyArrayObject*) call_PyArray_SimpleNew(static_cast<int>(nd), shape,
NumpyEquivalentType<Scalar>::type_code);
// Copy data
......@@ -42,7 +42,7 @@ namespace eigenpy
if(NumpyType::sharedMemory())
{
PyArrayObject * pyArray = (PyArrayObject*) call_PyArray_New(nd, shape,
PyArrayObject * pyArray = (PyArrayObject*) call_PyArray_New(static_cast<int>(nd), shape,
NumpyEquivalentType<Scalar>::type_code,
mat.data(),
NPY_ARRAY_MEMORY_CONTIGUOUS | NPY_ARRAY_ALIGNED);
......@@ -77,7 +77,7 @@ namespace eigenpy
if(NumpyType::sharedMemory())
{
PyArrayObject * pyArray = (PyArrayObject*) call_PyArray_New(nd, shape,
PyArrayObject * pyArray = (PyArrayObject*) call_PyArray_New(static_cast<int>(nd), shape,
NumpyEquivalentType<Scalar>::type_code,
const_cast<SimilarMatrixType &>(mat.derived()).data(),
NPY_ARRAY_MEMORY_CONTIGUOUS_RO | NPY_ARRAY_ALIGNED);
......
Markdown is supported
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