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; |