From c7ba3a551ee4f4d01b24366a3cb83f6f85f00388 Mon Sep 17 00:00:00 2001 From: Nicola Baldo Date: Fri, 15 Nov 2013 11:20:38 +0100 Subject: [PATCH] fixed Bug 1793 - Various errors by MacOS compiler --- src/lte/model/lte-common.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lte/model/lte-common.cc b/src/lte/model/lte-common.cc index de2f1b165..04f23411b 100644 --- a/src/lte/model/lte-common.cc +++ b/src/lte/model/lte-common.cc @@ -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; }