From 10a7419823a70e912ba8a9d68c5b3e1efe2d94ed Mon Sep 17 00:00:00 2001 From: subtly Date: Wed, 15 Apr 2015 16:26:36 -0400 Subject: [PATCH] bit by auto again. don't use unsigned for negative value. --- libp2p/Host.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/Host.cpp b/libp2p/Host.cpp index 5704f4727..1dd97d948 100644 --- a/libp2p/Host.cpp +++ b/libp2p/Host.cpp @@ -579,7 +579,7 @@ void Host::run(boost::system::error_code const&) // is always live and to ensure reputation and fallback timers are properly // updated. // disconnectLatePeers(); - auto openSlots = m_idealPeerCount - peerCount(); + int openSlots = m_idealPeerCount - peerCount(); if (openSlots > 0) { list> toConnect;