diff --git a/myframe/mailbox.cpp b/myframe/mailbox.cpp index 593dc6b..9c61a9c 100644 --- a/myframe/mailbox.cpp +++ b/myframe/mailbox.cpp @@ -73,7 +73,7 @@ void Mailbox::RecvClear() { void Mailbox::Recv(std::shared_ptr msg) { if (pending_queue_size_ > 0) { - for (; recv_.size() >= pending_queue_size_;) { + for (; recv_.size() >= static_cast(pending_queue_size_);) { recv_.pop_front(); } }