fixed Bug 2042 - src/lte/model/a3-rsrp-handover-algorithm.cc:137:79: error: overflow in implicit constant conversion
authorNicola Baldo <nbaldo@cttc.es>
Thu, 29 Jan 2015 11:36:56 +0100
changeset 11177 8ff9047464ea
parent 11176 91a1e2119f74
child 11178 852f39d83883
fixed Bug 2042 - src/lte/model/a3-rsrp-handover-algorithm.cc:137:79: error: overflow in implicit constant conversion
src/lte/model/a3-rsrp-handover-algorithm.cc
--- a/src/lte/model/a3-rsrp-handover-algorithm.cc	Wed Jan 28 22:57:30 2015 +0100
+++ b/src/lte/model/a3-rsrp-handover-algorithm.cc	Thu Jan 29 11:36:56 2015 +0100
@@ -134,7 +134,7 @@
           && !measResults.measResultListEutra.empty ())
         {
           uint16_t bestNeighbourCellId = 0;
-          uint8_t bestNeighbourRsrp = -std::numeric_limits<double>::infinity ();
+          uint8_t bestNeighbourRsrp = 0;
 
           for (std::list <LteRrcSap::MeasResultEutra>::iterator it = measResults.measResultListEutra.begin ();
                it != measResults.measResultListEutra.end ();