fixed Bug 1793 - Various errors by MacOS compiler

This commit is contained in:
Nicola Baldo
2013-11-15 11:20:38 +01:00
parent e2971f7a72
commit c7ba3a551e

View File

@@ -269,7 +269,6 @@ EutranMeasurementMapping::ActualHysteresis2IeValue (double hysteresisDb)
}
uint8_t ieValue = lround (hysteresisDb * 2.0);
// NS_ASSERT (ieValue >= 0); // always true due to limited range of data type
NS_ASSERT (ieValue <= 30);
return ieValue;
}
@@ -300,8 +299,8 @@ EutranMeasurementMapping::ActualA3Offset2IeValue (double a3OffsetDb)
<< " for A3 Offset");
}
uint8_t ieValue = lround (a3OffsetDb * 2.0);
// NS_ASSERT (ieValue >= -30); // always true due to limited range of data type
int8_t ieValue = lround (a3OffsetDb * 2.0);
NS_ASSERT (ieValue >= -30);
NS_ASSERT (ieValue <= 30);
return ieValue;
}