diff --git a/Modules/_queuemodule.c b/Modules/_queuemodule.c index 7bac461e98a50b6..7a4dc9b9ec2a8fd 100644 --- a/Modules/_queuemodule.c +++ b/Modules/_queuemodule.c @@ -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);