Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Replace redundant type with "auto" (include/ and src/).
[simgrid.git] / src / surf / network_wifi.cpp
index 9c605241488e9da847686cd16c5eeafbbe29cd02..76f2f57199d711fc41808871922f3a9bdac99ee0 100644 (file)
@@ -64,7 +64,7 @@ s4u::Link::SharingPolicy NetworkWifiLink::get_sharing_policy()
 
 void NetworkWifiLink::refresh_decay_bandwidths(){
   // Compute number of STAtion on the Access Point
-  int nSTA = static_cast<int>(host_rates_.size());
+  size_t nSTA = host_rates_.size();
 
   std::vector<Metric> new_bandwidths;
   for (auto bandwidth : bandwidths_){