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

Unified Diff: src/wimax/model/mac-messages.cc

Issue 331280043: Eliminate Visual Studio complier warnings (Closed)
Patch Set: Update patch per coding style requirements 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 | « src/wimax/model/mac-messages.h ('k') | src/wimax/model/service-flow.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wimax/model/mac-messages.cc
===================================================================
--- a/src/wimax/model/mac-messages.cc
+++ b/src/wimax/model/mac-messages.cc
@@ -33,7 +33,7 @@
NS_OBJECT_ENSURE_REGISTERED (ManagementMessageType);
ManagementMessageType::ManagementMessageType (void)
- : m_type (~0)
+ : m_type (static_cast<uint8_t> (~0))
{
}
@@ -679,7 +679,7 @@
void
DsaRsp::SetConfirmationCode (uint16_t confirmationCode)
{
- m_confirmationCode = confirmationCode;
+ m_confirmationCode = static_cast<uint8_t> (confirmationCode);
}
uint16_t
@@ -801,7 +801,7 @@
void
DsaAck::SetConfirmationCode (uint16_t confirmationCode)
{
- m_confirmationCode = confirmationCode;
+ m_confirmationCode = static_cast<uint8_t> (confirmationCode);
}
uint16_t
« no previous file with comments | « src/wimax/model/mac-messages.h ('k') | src/wimax/model/service-flow.cc » ('j') | no next file with comments »

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