Browse Source

add static_casts to previous count definition

Jens Keim 4 years ago
parent
commit
155e571b8b
1 changed files with 6 additions and 6 deletions
  1. 6 6
      code_boost/src/cxx/statistics.cpp

+ 6 - 6
code_boost/src/cxx/statistics.cpp

@@ -260,12 +260,12 @@ void statistics::addIntervalStat(std::chrono::duration<int, std::micro> interval
     intervalCorrectTCPChecksumCount = correctTCPChecksumCount;
     intervalCumPktCount = packetCount;
     intervalCumSumPktSize = sumPacketSize;
-    intervalCumNovelIPCount = ip_statistics.size();
-    intervalCumNovelTTLCount = ttl_values.size();
-    intervalCumNovelWinSizeCount = win_values.size();
-    intervalCumNovelToSCount = tos_values.size();
-    intervalCumNovelMSSCount = mss_values.size();
-    intervalCumNovelPortCount = port_values.size();
+    intervalCumNovelIPCount = static_cast<int>(ip_statistics.size());
+    intervalCumNovelTTLCount = static_cast<int>(ttl_values.size());
+    intervalCumNovelWinSizeCount = static_cast<int>(win_values.size());
+    intervalCumNovelToSCount =static_cast<int>(tos_values.size());
+    intervalCumNovelMSSCount = static_cast<int>(mss_values.size());
+    intervalCumNovelPortCount = static_cast<int>(port_values.size());
     intervalCumTTLValues = ttl_values;
     intervalCumWinSizeValues = win_values;
     intervalCumTosValues = tos_values;