Skip to content

Commit 2179355

Browse files
committed
Fix: missing sentinel in slots array
1 parent 1d73e4e commit 2179355

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

numpy/core/src/multiarray/scalartypes.c.src

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2794,6 +2794,7 @@ static PyType_Slot PyGenericArrType_Type_slots_legacy[] = {
27942794
GENTYPE_AS_NUMBER_SLOTS,
27952795
// as_mapping:
27962796
{Py_mp_subscript, gen_arrtype_subscript},
2797+
{0},
27972798
};
27982799

27992800
static HPyDef *PyGenericArrType_Type_slots[] = {

0 commit comments

Comments
 (0)