From 0a1b82b3242a69d8686a6366ffee32b9cbc3598e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Mon, 8 Jun 2026 11:57:15 +0200 Subject: [PATCH] Fix contiguous check: Accept only C-contiguous, not Fortran contiguous --- src/binding/python/RecordComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/binding/python/RecordComponent.cpp b/src/binding/python/RecordComponent.cpp index 4c0eba8de1..4e2a8674c0 100644 --- a/src/binding/python/RecordComponent.cpp +++ b/src/binding/python/RecordComponent.cpp @@ -303,7 +303,7 @@ inline void check_buffer_is_contiguous(py::array &a) delete view; throw py::error_already_set(); } - bool isContiguous = (PyBuffer_IsContiguous(view, 'A') != 0); + bool isContiguous = (PyBuffer_IsContiguous(view, 'C') != 0); PyBuffer_Release(view); delete view;