Skip to content

Commit ba174d4

Browse files
committed
add NPY_NEEDS_PYAPI flag to fix seg fault in sort test
1 parent 67f3bbb commit ba174d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stringdtype/stringdtype/src/dtype.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ new_stringdtype_instance(void)
2121
new->base.flags |= NPY_NEEDS_INIT;
2222
new->base.flags |= NPY_LIST_PICKLE;
2323
new->base.flags |= NPY_ITEM_REFCOUNT;
24+
new->base.flags |= NPY_NEEDS_PYAPI;
2425

2526
return new;
2627
}

0 commit comments

Comments
 (0)