summaryrefslogtreecommitdiff
path: root/node/Peer.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2014-04-03 14:36:52 -0700
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2014-04-03 14:36:52 -0700
commitc96d3ebf8cbcc639c194a69ce9dc299a55e2bfbe (patch)
tree819060f54c7c2b73ebcf0b3c90ec0fed7abd3d63 /node/Peer.cpp
parentb1088a6bd7a3b8c77c596f6b65663648d4c4fdea (diff)
downloadinfinitytier-c96d3ebf8cbcc639c194a69ce9dc299a55e2bfbe.tar.gz
infinitytier-c96d3ebf8cbcc639c194a69ce9dc299a55e2bfbe.zip
Such ping logic. So edge case.
Diffstat (limited to 'node/Peer.cpp')
-rw-r--r--node/Peer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp
index f8ff4082..db6ad261 100644
--- a/node/Peer.cpp
+++ b/node/Peer.cpp
@@ -216,7 +216,7 @@ bool Peer::isTcpFailoverTime(const RuntimeEnvironment *_r,uint64_t now) const
void Peer::clean(uint64_t now)
{
Mutex::Lock _l(_lock);
- unsigned long i = 0,o = 0,l = _paths.size();
+ unsigned long i = 0,o = 0,l = (unsigned long)_paths.size();
while (i != l) {
if (_paths[i].active(now))
_paths[o++] = _paths[i];