From bf060fddf851d52acdff485deb6fce43f71cd696 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Wed, 6 Aug 2008 16:11:44 +0100 Subject: [PATCH] Oops, typo (evil copy-paste) --- src/node/node.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node/node.cc b/src/node/node.cc index c9040bcbf..aef5ac798 100644 --- a/src/node/node.cc +++ b/src/node/node.cc @@ -106,7 +106,7 @@ Node::AddDevice (Ptr device) Ptr Node::GetDevice (uint32_t index) const { - NS_ASSERT_MSG (n < m_devices.size (), "Device index " << n << + NS_ASSERT_MSG (index < m_devices.size (), "Device index " << index << " is out of range (only have " << m_devices.size () << " devices)."); return m_devices[index]; } @@ -127,7 +127,7 @@ Node::AddApplication (Ptr application) Ptr Node::GetApplication (uint32_t index) const { - NS_ASSERT_MSG (n < m_applications.size (), "Application index " << n << + NS_ASSERT_MSG (index < m_applications.size (), "Application index " << index << " is out of range (only have " << m_applications.size () << " applications)."); return m_applications[index]; }