Fix compiler warning

pull/46/head
Tatsuhiro Tsujikawa 2013-01-29 21:38:58 +09:00
parent e583717144
commit de9697fc47
1 changed files with 2 additions and 1 deletions

View File

@ -112,7 +112,8 @@ bool DHTGetPeersCommand::execute()
lastGetPeerTime_ = global::wallclock();
if(numRetry_ < MAX_RETRIES &&
(btRuntime_->getMaxPeers() == 0 ||
btRuntime_->getMaxPeers() > peerStorage_->countAllPeer())) {
btRuntime_->getMaxPeers() >
static_cast<int>(peerStorage_->countAllPeer()))) {
++numRetry_;
A2_LOG_DEBUG(fmt("Too few peers. peers=%lu, max_peers=%d."
" Try again(%d)",