Skip to content

Commit

Permalink
Fix: SEGFAULT creating NumPy Array
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Dec 19, 2023
1 parent 14559ed commit 6cccca9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ static PyModuleDef simsimd_module = {
};

PyMODINIT_FUNC PyInit_simsimd(void) {
import_array();
PyObject* module = PyModule_Create(&simsimd_module);

if (module) {
Expand Down

0 comments on commit 6cccca9

Please sign in to comment.