From 4fd36051fd76e92fc98ddac2a2848e9cf1acefa4 Mon Sep 17 00:00:00 2001 From: Manuel Requena Date: Wed, 30 May 2012 18:04:22 +0200 Subject: [PATCH] Fix condition of assert message --- src/lte/model/lte-rlc-am.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lte/model/lte-rlc-am.cc b/src/lte/model/lte-rlc-am.cc index 80aa560e1..ae1b696b4 100644 --- a/src/lte/model/lte-rlc-am.cc +++ b/src/lte/model/lte-rlc-am.cc @@ -753,7 +753,7 @@ LteRlcAm::DoReceivePdu (Ptr p) it = m_rxonBuffer.find (m_vrMs.GetValue ()); NS_LOG_LOGIC ("Incr VR(MS) = " << m_vrMs); - NS_ASSERT_MSG (firstVrMs == m_vrMs.GetValue (), "Infinite loop in RxonBuffer"); + NS_ASSERT_MSG (firstVrMs != m_vrMs.GetValue (), "Infinite loop in RxonBuffer"); } NS_LOG_LOGIC ("New VR(MS) = " << m_vrMs); } @@ -784,7 +784,7 @@ LteRlcAm::DoReceivePdu (Ptr p) m_vrR++; it = m_rxonBuffer.find (m_vrR.GetValue ()); - NS_ASSERT_MSG (firstVrR == m_vrR.GetValue (), "Infinite loop in RxonBuffer"); + NS_ASSERT_MSG (firstVrR != m_vrR.GetValue (), "Infinite loop in RxonBuffer"); } NS_LOG_LOGIC ("New VR(R) = " << m_vrR); m_vrMr = m_vrR + m_windowSize; @@ -1538,7 +1538,7 @@ LteRlcAm::ExpireReorderingTimer (void) m_vrMs++; it = m_rxonBuffer.find (m_vrMs.GetValue ()); - NS_ASSERT_MSG (firstVrMs == m_vrMs.GetValue (), "Infinite loop in ExpireReorderingTimer"); + NS_ASSERT_MSG (firstVrMs != m_vrMs.GetValue (), "Infinite loop in ExpireReorderingTimer"); } NS_LOG_LOGIC ("New VR(MS) = " << m_vrMs);