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
Next Next commit
src: fix size underflow in CallbackQueue
Only decrease the size when actually removing items.
  • Loading branch information
addaleax committed Aug 7, 2020
commit 7ff8795f850d6d73e3f9a68c8bfb2a5c7bda5a97
2 changes: 1 addition & 1 deletion src/callback_queue-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ CallbackQueue<R, Args...>::Shift() {
head_ = ret->get_next();
if (!head_)
tail_ = nullptr; // The queue is now empty.
size_--;
}
size_--;
return ret;
}

Expand Down