diff --git a/include/eigenpy/numpy.hpp b/include/eigenpy/numpy.hpp index 3786b091b..2f56d31b5 100644 --- a/include/eigenpy/numpy.hpp +++ b/include/eigenpy/numpy.hpp @@ -208,7 +208,7 @@ EIGENPY_DLLAPI PyArray_Descr* call_PyArray_DescrFromType(int typenum); EIGENPY_DLLAPI void call_PyArray_InitArrFuncs(PyArray_ArrFuncs* funcs); -EIGENPY_DLLAPI int call_PyArray_RegisterDataType(PyArray_Descr* dtype); +EIGENPY_DLLAPI int call_PyArray_RegisterDataType(PyArray_DescrProto* dtype); EIGENPY_DLLAPI int call_PyArray_RegisterCanCast(PyArray_Descr* descr, int totype, diff --git a/src/numpy.cpp b/src/numpy.cpp index e758ed02d..0621edc8b 100644 --- a/src/numpy.cpp +++ b/src/numpy.cpp @@ -57,7 +57,7 @@ void call_PyArray_InitArrFuncs(PyArray_ArrFuncs* funcs) { PyArray_InitArrFuncs(funcs); } -int call_PyArray_RegisterDataType(PyArray_Descr* dtype) { +int call_PyArray_RegisterDataType(PyArray_DescrProto* dtype) { return PyArray_RegisterDataType(dtype); }