summaryrefslogtreecommitdiff
path: root/node/Switch.cpp
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2019-06-13 10:27:54 -0700
committerGrant Limberg <grant.limberg@zerotier.com>2019-06-13 10:28:09 -0700
commit47d29ddcaf677a5376f54e6901bcdc38e499b16d (patch)
tree41a840d935dc2a90b063ac619008bcc085e67c75 /node/Switch.cpp
parentf411eb1651bbfaa276eab02cf368e9fcb3905a15 (diff)
downloadinfinitytier-47d29ddcaf677a5376f54e6901bcdc38e499b16d.tar.gz
infinitytier-47d29ddcaf677a5376f54e6901bcdc38e499b16d.zip
Compiler warning cleanup
Diffstat (limited to 'node/Switch.cpp')
-rw-r--r--node/Switch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp
index 55275dc3..a9c882fb 100644
--- a/node/Switch.cpp
+++ b/node/Switch.cpp
@@ -601,7 +601,7 @@ void Switch::aqm_enqueue(void *tPtr, const SharedPtr<Network> &network, Packet &
uint64_t Switch::control_law(uint64_t t, int count)
{
- return t + ZT_QOS_INTERVAL / sqrt(count);
+ return (uint64_t)(t + ZT_QOS_INTERVAL / sqrt(count));
}
Switch::dqr Switch::dodequeue(ManagedQueue *q, uint64_t now)