Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
lkpworkspace committed Dec 23, 2024
1 parent 7b47f52 commit 9adc06a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion myframe/mailbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void Mailbox::RecvClear() {

void Mailbox::Recv(std::shared_ptr<Msg> msg) {
if (pending_queue_size_ > 0) {
for (; recv_.size() >= pending_queue_size_;) {
for (; recv_.size() >= static_cast<std::size_t>(pending_queue_size_);) {
recv_.pop_front();
}
}
Expand Down

0 comments on commit 9adc06a

Please sign in to comment.