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

Unified Diff: src/lte/model/lte-common.cc

Issue 338840043: Eliminate Visual Studio compiler warnings (Closed)
Patch Set: Patch updates for x64 build Created 6 years, 2 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
« no previous file with comments | « src/lte/model/lte-ccm-rrc-sap.h ('k') | src/lte/model/lte-enb-cmac-sap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lte/model/lte-common.cc
===================================================================
--- a/src/lte/model/lte-common.cc
+++ b/src/lte/model/lte-common.cc
@@ -190,7 +190,7 @@
uint8_t
BufferSizeLevelBsr::BufferSize2BsrId (uint32_t val)
{
- int index = 0;
+ uint8_t index = 0;
if (BufferSizeLevelBsrTable[63] < val)
{
index = 63;
@@ -204,7 +204,7 @@
}
}
- return (index);
+ return index;
}
@@ -310,7 +310,7 @@
<< " for hysteresis");
}
- uint8_t ieValue = lround (hysteresisDb * 2.0);
+ uint8_t ieValue = static_cast<uint8_t>(lround (hysteresisDb * 2.0));
NS_ASSERT (ieValue <= 30);
return ieValue;
}
@@ -341,7 +341,7 @@
<< " for A3 Offset");
}
- int8_t ieValue = lround (a3OffsetDb * 2.0);
+ int8_t ieValue = static_cast<uint8_t>(lround (a3OffsetDb * 2.0));
NS_ASSERT (ieValue >= -30);
NS_ASSERT (ieValue <= 30);
return ieValue;
« no previous file with comments | « src/lte/model/lte-ccm-rrc-sap.h ('k') | src/lte/model/lte-enb-cmac-sap.h » ('j') | no next file with comments »

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