Verified Commit c946a394 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: fix signatures

parent 62ba8ceb
......@@ -37,7 +37,7 @@ namespace eigenpy
{
EIGENPY_DLLEXPORT PyObject* call_PyArray_SimpleNew(int nd, npy_intp * shape, NPY_TYPES np_type);
EIGENPY_DLLEXPORT PyObject* call_PyArray_New(int nd, npy_intp * shape, NPY_TYPES np_type, void * data_ptr, npy_intp options);
EIGENPY_DLLEXPORT PyObject* call_PyArray_New(int nd, npy_intp * shape, NPY_TYPES np_type, void * data_ptr, int options);
EIGENPY_DLLEXPORT int call_PyArray_ObjectType(PyObject *, int);
}
......
......@@ -19,10 +19,10 @@ namespace eigenpy
PyObject* call_PyArray_SimpleNew(int nd, npy_intp * shape, NPY_TYPES np_type)
{
return (PyArrayObject*)PyArray_SimpleNew(nd,shape,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, npy_intp options)
PyObject* call_PyArray_New(int nd, npy_intp * shape, NPY_TYPES np_type, void * data_ptr, int options)
{
return PyArray_New(&PyArray_Type,nd,shape,np_type,NULL,data_ptr,0,options,NULL);
}
......
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