From a97918f81253c0dbb08766271c6ab6111120bf0d Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 7 Mar 2017 13:57:31 -0800 Subject: [PATCH] Windows build fixes. --- ext/installfiles/windows/ZeroTier One.aip | 43 ++++++++++++++++--- node/Path.hpp | 2 +- windows/ZeroTierOne/ZeroTierOne.vcxproj | 2 - .../ZeroTierOne/ZeroTierOne.vcxproj.filters | 6 --- 4 files changed, 39 insertions(+), 14 deletions(-) diff --git a/ext/installfiles/windows/ZeroTier One.aip b/ext/installfiles/windows/ZeroTier One.aip index 3fb6d5c63..18cc0ab7b 100644 --- a/ext/installfiles/windows/ZeroTier One.aip +++ b/ext/installfiles/windows/ZeroTier One.aip @@ -47,6 +47,7 @@ + @@ -69,20 +70,25 @@ + - + - + + + + + @@ -92,6 +98,12 @@ + + + + + + @@ -133,6 +145,10 @@ + + + + @@ -161,6 +177,7 @@ + @@ -200,12 +217,19 @@ + + + + + + + @@ -267,13 +291,19 @@ + + + + + + - + @@ -281,7 +311,7 @@ - + @@ -300,12 +330,15 @@ - + + + + diff --git a/node/Path.hpp b/node/Path.hpp index dd6455d10..62f29c228 100644 --- a/node/Path.hpp +++ b/node/Path.hpp @@ -156,7 +156,7 @@ public: const uint64_t fl = (_incomingLinkQualityFastLog = ((_incomingLinkQualityFastLog << 1) | (uint64_t)(prev == ((counter - 1) & 0x7)))); if (++_incomingLinkQualitySlowLogCounter >= 64) { _incomingLinkQualitySlowLogCounter = 0; - _incomingLinkQualitySlowLog[_incomingLinkQualitySlowLogPtr++ % sizeof(_incomingLinkQualitySlowLog)] = Utils::countBits(fl); + _incomingLinkQualitySlowLog[_incomingLinkQualitySlowLogPtr++ % sizeof(_incomingLinkQualitySlowLog)] = (uint8_t)Utils::countBits(fl); } } diff --git a/windows/ZeroTierOne/ZeroTierOne.vcxproj b/windows/ZeroTierOne/ZeroTierOne.vcxproj index d0b027fac..5092a6552 100644 --- a/windows/ZeroTierOne/ZeroTierOne.vcxproj +++ b/windows/ZeroTierOne/ZeroTierOne.vcxproj @@ -72,7 +72,6 @@ - @@ -151,7 +150,6 @@ - diff --git a/windows/ZeroTierOne/ZeroTierOne.vcxproj.filters b/windows/ZeroTierOne/ZeroTierOne.vcxproj.filters index 1b7b469d6..ca1640e9f 100644 --- a/windows/ZeroTierOne/ZeroTierOne.vcxproj.filters +++ b/windows/ZeroTierOne/ZeroTierOne.vcxproj.filters @@ -78,9 +78,6 @@ - - Source Files\service - Source Files\service @@ -275,9 +272,6 @@ Header Files\osdep - - Header Files\service - Header Files\service