Fix condition of assert message
authorManuel Requena <manuel.requena@cttc.es>
Wed, 30 May 2012 18:04:22 +0200
changeset 8828 ccee8110ddb5
parent 8827 988a5b38cd6e
child 8829 b425987e55df
child 8851 7e4ce9396c99
child 9314 c893b53ea178
Fix condition of assert message
src/lte/model/lte-rlc-am.cc
--- a/src/lte/model/lte-rlc-am.cc	Wed May 30 17:51:05 2012 +0200
+++ b/src/lte/model/lte-rlc-am.cc	Wed May 30 18:04:22 2012 +0200
@@ -753,7 +753,7 @@
               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 @@
                   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 @@
       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);