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

Unified Diff: src/lte/model/epc-mme.cc

Issue 338840043: Eliminate Visual Studio compiler warnings (Closed)
Patch Set: Update patch with latest module changes. 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
Index: src/lte/model/epc-mme.cc
===================================================================
--- a/src/lte/model/epc-mme.cc
+++ b/src/lte/model/epc-mme.cc
@@ -113,7 +113,7 @@
NS_ASSERT_MSG (it != m_ueInfoMap.end (), "could not find any UE with IMSI " << imsi);
NS_ASSERT_MSG (it->second->bearerCounter < 11, "too many bearers already! " << it->second->bearerCounter);
BearerInfo bearerInfo;
- bearerInfo.bearerId = ++(it->second->bearerCounter);
+ bearerInfo.bearerId = static_cast<uint8_t> (++(it->second->bearerCounter));
bearerInfo.tft = tft;
bearerInfo.bearer = bearer;
it->second->bearersToBeActivated.push_back (bearerInfo);
@@ -164,10 +164,10 @@
NS_ASSERT_MSG (it != m_ueInfoMap.end (), "could not find any UE with IMSI " << imsi);
NS_LOG_INFO ("IMSI " << imsi << " old eNB: " << it->second->cellId << ", new eNB: " << gci);
it->second->cellId = gci;
- it->second->enbUeS1Id = enbUeS1Id;
+ it->second->enbUeS1Id = static_cast<uint16_t> (enbUeS1Id);
EpcS11SapSgw::ModifyBearerRequestMessage msg;
- msg.teid = imsi; // trick to avoid the need for allocating TEIDs on the S11 interface
+ msg.teid = static_cast<uint32_t> (imsi); // trick to avoid the need for allocating TEIDs on the S11 interface
msg.uli.gci = gci;
// bearer modification is not supported for now
m_s11SapSgw->ModifyBearerRequest (msg);
@@ -231,7 +231,7 @@
EpcS11SapSgw::DeleteBearerCommandMessage msg;
// trick to avoid the need for allocating TEIDs on the S11 interface
- msg.teid = imsi;
+ msg.teid = static_cast<uint32_t> (imsi);
for (std::list<EpcS1apSapMme::ErabToBeReleasedIndication>::iterator bit = erabToBeReleaseIndication.begin (); bit != erabToBeReleaseIndication.end (); ++bit)
{
@@ -252,7 +252,7 @@
NS_ASSERT_MSG (it != m_ueInfoMap.end (), "could not find any UE with IMSI " << imsi);
EpcS11SapSgw::DeleteBearerResponseMessage res;
- res.teid = imsi;
+ res.teid = static_cast<uint32_t> (imsi);
for (std::list<EpcS11SapMme::BearerContextRemoved>::iterator bit = msg.bearerContextsRemoved.begin ();
bit != msg.bearerContextsRemoved.end ();

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