소스 검색

add static_casts to previous count definition

Jens Keim 6 년 전
부모
커밋
155e571b8b
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  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;