From 793197d311a49cd80cdc9a5506969506f3d1d239 Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Sun, 25 Aug 2024 17:17:32 +0200 Subject: [PATCH] core: fix compatibility with NumPy 2.x on Windows --- src/numpy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/numpy.cpp b/src/numpy.cpp index e758ed02..0621edc8 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); } -- GitLab