From 9059f354fdbd496615c3a2cff2f72b9eff14fb81 Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Wed, 26 Feb 2020 12:14:29 +0100 Subject: [PATCH] core: fix cast --- include/eigenpy/numpy.hpp | 4 ++-- src/numpy.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/eigenpy/numpy.hpp b/include/eigenpy/numpy.hpp index 5e4ebbf5..180c59d0 100644 --- a/include/eigenpy/numpy.hpp +++ b/include/eigenpy/numpy.hpp @@ -35,9 +35,9 @@ namespace eigenpy #if defined _WIN32 || defined __CYGWIN__ namespace eigenpy { - EIGENPY_DLLEXPORT PyObject* call_PyArray_SimpleNew(int nd, npy_intp * shape, NPY_TYPES np_type); + EIGENPY_DLLEXPORT PyObject* call_PyArray_SimpleNew(int nd, npy_intp * shape, int np_type); - EIGENPY_DLLEXPORT PyObject* call_PyArray_New(int nd, npy_intp * shape, NPY_TYPES np_type, void * data_ptr, int options); + EIGENPY_DLLEXPORT PyObject* call_PyArray_New(int nd, npy_intp * shape, int np_type, void * data_ptr, int options); EIGENPY_DLLEXPORT int call_PyArray_ObjectType(PyObject *, int); } diff --git a/src/numpy.cpp b/src/numpy.cpp index 17e28578..4e7531bc 100644 --- a/src/numpy.cpp +++ b/src/numpy.cpp @@ -17,12 +17,12 @@ namespace eigenpy #if defined _WIN32 || defined __CYGWIN__ - PyObject* call_PyArray_SimpleNew(int nd, npy_intp * shape, NPY_TYPES np_type) + PyObject* call_PyArray_SimpleNew(int nd, npy_intp * shape, int np_type) { return PyArray_SimpleNew(nd,shape,np_type); } - PyObject* call_PyArray_New(int nd, npy_intp * shape, NPY_TYPES np_type, void * data_ptr, int options) + PyObject* call_PyArray_New(int nd, npy_intp * shape, int np_type, void * data_ptr, int options) { return PyArray_New(&PyArray_Type,nd,shape,np_type,NULL,data_ptr,0,options,NULL); } -- GitLab