Skip to content

Commit f31053e

Browse files
authored
Merge pull request #45 from apache/5.0.x-backport
apply numpy fix to 5.0.x branch
2 parents a5d5ea0 + 9e8ac10 commit f31053e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/density_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void bind_density_sketch(nb::module_ &m, const char* name) {
9898
}
9999

100100
int prepare_numpy() {
101-
import_array();
101+
import_array1(0);
102102
return 0;
103103
}
104104

0 commit comments

Comments
 (0)