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 |