Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix compiler warning
  • Loading branch information
vstinner committed Oct 10, 2025
commit 9e42598538d42c1556c65d263666a532ec3ecee0
2 changes: 1 addition & 1 deletion Objects/tupleobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@ PyTupleWriter_Create(Py_ssize_t size)
writer->size = 0;
writer->allocated = Py_ARRAY_LENGTH(writer->small_tuple);

if (size > writer->allocated) {
if ((size_t)size > writer->allocated) {
if (_PyTupleWriter_SetSize(writer, size, 0) < 0) {
PyTupleWriter_Discard(writer);
return NULL;
Expand Down
Loading