Skip to content

Commit

Permalink
Fix return
Browse files Browse the repository at this point in the history
  • Loading branch information
mpage committed Jan 18, 2024
1 parent 37b45d2 commit cdf0917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_queuemodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ resize_ringbuf(RingBuf *buf, Py_ssize_t capacity)
{
Py_ssize_t new_capacity = Py_MAX(INITIAL_RING_BUF_CAPACITY, capacity);
if (new_capacity == buf->items_cap) {
return;
return 0;
}
assert(buf->num_items <= new_capacity);

Expand Down

0 comments on commit cdf0917

Please sign in to comment.