Skip to content

Commit

Permalink
Inline RingBuf_IsEmpty logic
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Jan 19, 2024
1 parent c472447 commit 9c0a58c
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 @@ -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 {
Expand Down

0 comments on commit 9c0a58c

Please sign in to comment.