diff --git a/Modules/_queuemodule.c b/Modules/_queuemodule.c index cb5a99b871db83..8fca3cdd0deb18 100644 --- a/Modules/_queuemodule.c +++ b/Modules/_queuemodule.c @@ -179,7 +179,7 @@ RingBuf_Len(RingBuf *buf) static bool RingBuf_IsEmpty(RingBuf *buf) { - return RingBuf_Len(buf) == 0; + return buf->num_items == 0; } typedef struct {