From 47d29ddcaf677a5376f54e6901bcdc38e499b16d Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Thu, 13 Jun 2019 10:27:54 -0700 Subject: Compiler warning cleanup --- node/Switch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node/Switch.cpp') 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, 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) -- cgit v1.2.3