You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by jm...@apache.org on 2024/03/28 17:27:47 UTC
(datasketches-python) 01/01: Use numpy's import_array1(0) to avoid return type weirdness with muslinux as part of issue #43
This is an automated email from the ASF dual-hosted git repository.
jmalkin pushed a commit to branch numpy-fix
in repository https://gitbox.apache.org/repos/asf/datasketches-python.git
commit 1cafe73232b59c455b402dd0ac2c264ef0a8aea1
Author: Jon <jm...@apache.org>
AuthorDate: Thu Mar 28 10:27:32 2024 -0700
Use numpy's import_array1(0) to avoid return type weirdness with muslinux as part of issue #43
---
src/density_wrapper.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/density_wrapper.cpp b/src/density_wrapper.cpp
index 3221d17..2bc422f 100644
--- a/src/density_wrapper.cpp
+++ b/src/density_wrapper.cpp
@@ -98,7 +98,7 @@ void bind_density_sketch(nb::module_ &m, const char* name) {
}
int prepare_numpy() {
- import_array();
+ import_array1(0);
return 0;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org