Skip to content

Commit 81be755

Browse files
committed
Fix invalid patch for PyUFuncOverride_GetOutObjects in Numpy 1.23.5
1 parent 8002da6 commit 81be755

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graalpython/lib-graalpython/patches/numpy/sdist/numpy-1.23.5.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,13 @@ index 4fb4d4b..a721a60 100644
270270
return -1;
271271
}
272272
- *out_objs = PySequence_Fast_ITEMS(seq);
273-
- *out_kwd_obj = seq;
274-
+ *out_kwd_obj = PyTuple_Pack(1, *out_kwd_obj);
273+
*out_kwd_obj = seq;
275274
return PySequence_Fast_GET_SIZE(seq);
276275
}
277276
else {
278-
Py_INCREF(*out_kwd_obj);
277+
- Py_INCREF(*out_kwd_obj);
279278
- *out_objs = out_kwd_obj;
279+
+ *out_kwd_obj = PyTuple_Pack(1, *out_kwd_obj);
280280
return 1;
281281
}
282282
}

0 commit comments

Comments
 (0)