Skip to content

Commit 62b19d8

Browse files
committed
Initialize PySlot.sl_ptr with _Py_NULL
1 parent 905c80b commit 62b19d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Include/slots.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct PySlot {
4242
#define PySlot_STATIC_DATA(NAME, VALUE) \
4343
{.sl_id=(NAME), .sl_flags=PySlot_STATIC, .sl_ptr=(VALUE)}
4444

45-
#define PySlot_END {0, 0, {0}, {0}}
45+
#define PySlot_END {0, 0, {0}, {_Py_NULL}}
4646

4747

4848
// Macros without designated initializers (for C++11 and below):

0 commit comments

Comments
 (0)