Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1422)

Unified Diff: examples/routing/global-routing-multi-switch-plus-router.cc

Issue 335620043: Eliminate Visual Studio compiler warnings (Closed)
Patch Set: Updated patch to minimize changes Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/routing/global-routing-multi-switch-plus-router.cc
===================================================================
--- a/examples/routing/global-routing-multi-switch-plus-router.cc
+++ b/examples/routing/global-routing-multi-switch-plus-router.cc
@@ -661,7 +661,7 @@
Time interPacketInterval = Seconds (0.005);
uint32_t packetSize = 1000;
- uint32_t maxPacketCount = (simDurationSeconds - 2.0) / 0.005;
+ uint32_t maxPacketCount = static_cast<uint32_t> ((simDurationSeconds - 2.0) / 0.005);
UdpEchoClientHelper client (Ipv4Address ("192.168.2.2"), udpEchoPort);
@@ -697,7 +697,7 @@
Time interPacketInterval = Seconds (0.005);
uint32_t packetSize = 1000;
- uint32_t maxPacketCount = (simDurationSeconds - 2.0) / 0.005;
+ uint32_t maxPacketCount = static_cast<uint32_t> ((simDurationSeconds - 2.0) / 0.005);
UdpEchoClientHelper client (Ipv4Address ("192.168.1.3"), udpEchoPort);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b