Skip to content
Snippets Groups Projects

Fix Numpy 1.20.0 by initializing PyArray_Descr portably

1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
+ 1
0
@@ -676,6 +676,7 @@ SWIGINTERN bool swiglal_release_parent(void *ptr) {
| NPY_ITEM_IS_POINTER | NPY_NEEDS_INIT | NPY_NEEDS_PYAPI;
(*pdescr)->f = &swiglal_py_array_objview_##ACFTYPE##_arrfuncs;
if (PyArray_RegisterDataType(*pdescr) < 0) {
PyErr_Print(); // FIXME: remove before merging
return NULL;
}
}
Loading