Fix unsigned integer comparison error
authorMitch Watrous <watrous@u.washington.edu>
Fri, 07 Dec 2012 14:31:32 -0800
changeset 9179 19ad4f0192e9
parent 9178 b9ba20a7a5ab
child 9180 818aee3d2c7b
Fix unsigned integer comparison error
src/test/ns3tcp/ns3tcp-cwnd-test-suite.cc
--- a/src/test/ns3tcp/ns3tcp-cwnd-test-suite.cc	Fri Dec 07 15:59:05 2012 -0500
+++ b/src/test/ns3tcp/ns3tcp-cwnd-test-suite.cc	Fri Dec 07 14:31:32 2012 -0800
@@ -557,7 +557,7 @@
   
   int cwnd = 5 * MSS;
   //In CongAvoid each event will increase cwnd by (MSS * MSS / cwnd)
-  for (uint32_t i = 30; i < 45; ++i)
+  for (uint32_t i = 30; i < N_EVENTS; ++i)
     {
       double adder = static_cast<double> (MSS * MSS) / cwnd;
       adder = std::max (1.0, adder);