8000 Make sure struct _Py_tuple_state is never empty. · python/cpython@4ac3d66 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4ac3d66

Browse files
Make sure struct _Py_tuple_state is never empty.
1 parent c163aca commit 4ac3d66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Include/internal/pycore_tuple.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ struct _Py_tuple_state {
5353
Each linked list is initially NULL. */
5454
PyTupleObject *free_list[PyTuple_NFREELISTS];
5555
int numfree[PyTuple_NFREELISTS];
56+
#else
57+
char _unused; // Empty structs are not allowed.
5658
#endif
5759
};
5860

0 commit comments

Comments
 (0)
0