summaryrefslogtreecommitdiff
path: root/node/Multicaster.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2014-10-19 12:56:39 -0700
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2014-10-19 12:56:39 -0700
commit74f36f5dc0a8e81a53cfeb86c64db4bb9c23fe30 (patch)
tree84bd7a508a5046eaa1e1cf37dfba6941908ff0b0 /node/Multicaster.cpp
parent2eeb3dee9e525ef5fd1f3ad2049e4b4cb9cdef0d (diff)
downloadinfinitytier-74f36f5dc0a8e81a53cfeb86c64db4bb9c23fe30.tar.gz
infinitytier-74f36f5dc0a8e81a53cfeb86c64db4bb9c23fe30.zip
Windows build fixes.
Diffstat (limited to 'node/Multicaster.cpp')
-rw-r--r--node/Multicaster.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Multicaster.cpp b/node/Multicaster.cpp
index ba8258b2..38bcc237 100644
--- a/node/Multicaster.cpp
+++ b/node/Multicaster.cpp
@@ -81,7 +81,7 @@ unsigned int Multicaster::gather(const Address &queryingPeer,uint64_t nwid,const
std::map< std::pair<uint64_t,MulticastGroup>,MulticastGroupStatus >::const_iterator gs(_groups.find(std::pair<uint64_t,MulticastGroup>(nwid,mg)));
if ((gs != _groups.end())&&(!gs->second.members.empty())) {
- totalKnown += gs->second.members.size();
+ totalKnown += (unsigned int)gs->second.members.size();
// Members are returned in random order so that repeated gather queries
// will return different subsets of a large multicast group.
@@ -290,7 +290,7 @@ void Multicaster::send(
C25519::Signature sig(RR->identity.sign(outp.field(ZT_PROTO_VERB_P5_MULTICAST_FRAME_IDX__START_OF_SIGNED_PORTION,signedPortionLen),signedPortionLen));
outp.append((uint16_t)sig.size());
- outp.append(sig.data,sig.size());
+ outp.append(sig.data,(unsigned int)sig.size());
if (com) com->serialize(outp);