From 83cb1b630a3b9da5ca92814de1bac4e7f0bdfb71 Mon Sep 17 00:00:00 2001 From: Angelo Mantellini Date: Fri, 8 Mar 2019 15:35:31 +0100 Subject: [HICN-102] Remove warnings and compilation errors in hicn on windows Change-Id: Ibb5d90fe35097a29fa6edccd3c7859d043888717 Signed-off-by: Angelo Mantellini --- libtransport/src/hicn/transport/protocols/raaqm.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libtransport/src/hicn/transport/protocols/raaqm.cc') diff --git a/libtransport/src/hicn/transport/protocols/raaqm.cc b/libtransport/src/hicn/transport/protocols/raaqm.cc index f5eb48bd8..cd3a6cb85 100644 --- a/libtransport/src/hicn/transport/protocols/raaqm.cc +++ b/libtransport/src/hicn/transport/protocols/raaqm.cc @@ -151,7 +151,7 @@ void RaaqmTransportProtocol::afterContentReception( increaseWindow(); updateRtt(interest.getName().getSuffix()); this->rate_estimator_->onDataReceived((int)content_object.payloadSize() + - content_object.headerSize()); + (int)content_object.headerSize()); // Set drop probablility and window size accordingly RAAQM(); } @@ -468,7 +468,7 @@ void RaaqmTransportProtocol::sendInterest(std::uint64_t next_suffix) { auto interest = getPacket(); core::Name *name; socket_->getSocketOption(GeneralTransportOptions::NETWORK_NAME, &name); - name->setSuffix(next_suffix); + name->setSuffix((uint32_t)next_suffix); interest->setName(*name); uint32_t interest_lifetime; @@ -522,7 +522,7 @@ void RaaqmTransportProtocol::updateRtt(uint64_t segment) { now - interest_timepoints_[segment & mask]); // Update stats - updateStats(segment, rtt.count(), now); + updateStats((uint32_t)segment, rtt.count(), now); if (this->rate_estimator_) { this->rate_estimator_->onRttUpdate((double)rtt.count()); -- cgit 1.2.3-korg