specify unsigned integer literal (fix compiler warning)
authorTom Henderson <tomh@tomh.org>
Sun, 01 Feb 2015 08:17:09 -0800
changeset 11203 17fff1a5030b
parent 11202 6286a5dc3f64
child 11204 f8f2488b08ca
specify unsigned integer literal (fix compiler warning)
examples/wireless/ht-wifi-network.cc
examples/wireless/simple-mpdu-aggregation.cc
examples/wireless/simple-msdu-aggregation.cc
examples/wireless/wifi-timing-attributes.cc
--- a/examples/wireless/ht-wifi-network.cc	Sun Feb 01 07:13:56 2015 -0800
+++ b/examples/wireless/ht-wifi-network.cc	Sun Feb 01 08:17:09 2015 -0800
@@ -319,7 +319,7 @@
           serverApp.Stop (Seconds (simulationTime+1));
 
           UdpClientHelper myClient (staNodeInterface.GetAddress (0), 9);
-          myClient.SetAttribute ("MaxPackets", UintegerValue (4294967295));
+          myClient.SetAttribute ("MaxPackets", UintegerValue (4294967295u));
           myClient.SetAttribute ("Interval", TimeValue (Time ("0.00002"))); //packets/s
           myClient.SetAttribute ("PacketSize", UintegerValue (payloadSize));
 
--- a/examples/wireless/simple-mpdu-aggregation.cc	Sun Feb 01 07:13:56 2015 -0800
+++ b/examples/wireless/simple-mpdu-aggregation.cc	Sun Feb 01 08:17:09 2015 -0800
@@ -145,7 +145,7 @@
   serverApp.Stop (Seconds (simulationTime+1));
       
   UdpClientHelper myClient (StaInterface.GetAddress (0), 9);
-  myClient.SetAttribute ("MaxPackets", UintegerValue (4294967295));
+  myClient.SetAttribute ("MaxPackets", UintegerValue (4294967295u));
   myClient.SetAttribute ("Interval", TimeValue (Time ("0.00002"))); //packets/s
   myClient.SetAttribute ("PacketSize", UintegerValue (payloadSize));
               
--- a/examples/wireless/simple-msdu-aggregation.cc	Sun Feb 01 07:13:56 2015 -0800
+++ b/examples/wireless/simple-msdu-aggregation.cc	Sun Feb 01 08:17:09 2015 -0800
@@ -139,7 +139,7 @@
   serverApp.Stop (Seconds (simulationTime+1));
     
   UdpClientHelper myClient (StaInterface.GetAddress (0), 9);
-  myClient.SetAttribute ("MaxPackets", UintegerValue (4294967295));
+  myClient.SetAttribute ("MaxPackets", UintegerValue (4294967295u));
   myClient.SetAttribute ("Interval", TimeValue (Time ("0.00002"))); //packets/s
   myClient.SetAttribute ("PacketSize", UintegerValue (payloadSize));
     
--- a/examples/wireless/wifi-timing-attributes.cc	Sun Feb 01 07:13:56 2015 -0800
+++ b/examples/wireless/wifi-timing-attributes.cc	Sun Feb 01 08:17:09 2015 -0800
@@ -147,7 +147,7 @@
   serverApp.Stop (Seconds (simulationTime));
 
   UdpClientHelper client (staNodeInterface.GetAddress (0), 9);
-  client.SetAttribute ("MaxPackets", UintegerValue (4294967295));
+  client.SetAttribute ("MaxPackets", UintegerValue (4294967295u));
   client.SetAttribute ("Interval", TimeValue (Time ("0.00002"))); //packets/s
   client.SetAttribute ("PacketSize", UintegerValue (1472)); //bytes