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

Unified Diff: src/wifi/model/regular-wifi-mac.cc

Issue 333070043: Eliminate Visual Studio compiler warnings (Closed)
Patch Set: Updates to address review comments Created 5 years, 10 months 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
Index: src/wifi/model/regular-wifi-mac.cc
===================================================================
--- a/src/wifi/model/regular-wifi-mac.cc
+++ b/src/wifi/model/regular-wifi-mac.cc
@@ -204,7 +204,7 @@
NS_LOG_DEBUG ("Updating maxSupportedRate to " << maxSupportedRate);
}
}
- capabilities.SetRxHighestSupportedDataRate (maxSupportedRate / 1e6); //in Mbit/s
+ capabilities.SetRxHighestSupportedDataRate (static_cast<uint16_t> (maxSupportedRate / 1e6)); //in Mbit/s
capabilities.SetTxMcsSetDefined (m_phy->GetNMcs () > 0);
capabilities.SetTxMaxNSpatialStreams (m_phy->GetMaxSupportedTxSpatialStreams ());
//we do not support unequal modulations
@@ -271,8 +271,8 @@
NS_LOG_DEBUG ("Updating maxSupportedRateLGI to " << maxSupportedRateLGI);
}
}
- capabilities.SetRxHighestSupportedLgiDataRate (maxSupportedRateLGI / 1e6); //in Mbit/s
- capabilities.SetTxHighestSupportedLgiDataRate (maxSupportedRateLGI / 1e6); //in Mbit/s
+ capabilities.SetRxHighestSupportedLgiDataRate (static_cast<uint16_t> (maxSupportedRateLGI / 1e6)); //in Mbit/s
+ capabilities.SetTxHighestSupportedLgiDataRate (static_cast<uint16_t> (maxSupportedRateLGI / 1e6)); //in Mbit/s
//To be filled in once supported
capabilities.SetRxStbc (0);
capabilities.SetTxStbc (0);

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