1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Thu, 2 Oct 2025 16:59:20 +0200
Subject: Fix FTBFS with NumPy 2.3
Bug-Debian: https://bugs.debian.org/1114714
---
ext/fast_from_py_numpy.hpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ext/fast_from_py_numpy.hpp b/ext/fast_from_py_numpy.hpp
index f2baf90..784e59d 100644
--- a/ext/fast_from_py_numpy.hpp
+++ b/ext/fast_from_py_numpy.hpp
@@ -38,7 +38,7 @@ template <long tangoScalarTypeConst>
// Is the array exactly what we need? I mean: The type we need and with
// continuous aligned memory?
- const bool exact_array = (PyArray_CHKFLAGS(to_PyArrayObject(py_val), NPY_C_CONTIGUOUS | NPY_ALIGNED) &&
+ const bool exact_array = (PyArray_CHKFLAGS(to_PyArrayObject(py_val), NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_ALIGNED) &&
(PyArray_TYPE(to_PyArrayObject(py_val)) == typenum));
if(isImage)
@@ -201,7 +201,7 @@ template <long tangoArrayTypeConst>
// Is the array exactly what we need? I mean: The type we need and with
// continuous aligned memory?
- const bool exact_array = (PyArray_CHKFLAGS(to_PyArrayObject(py_val), NPY_C_CONTIGUOUS | NPY_ALIGNED) &&
+ const bool exact_array = (PyArray_CHKFLAGS(to_PyArrayObject(py_val), NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_ALIGNED) &&
(PyArray_TYPE(to_PyArrayObject(py_val)) == typenum));
// Check: This is an spectrum!
|