From ae20077ec53a9383430862012dfe2ee0fe79cfda Mon Sep 17 00:00:00 2001 From: Tommaso Pecorella Date: Wed, 3 Feb 2016 22:47:25 +0100 Subject: [PATCH] internet: fix to commit c18dbc505385 - signed / unsigned comparison --- src/internet/model/ipv6-l3-protocol.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internet/model/ipv6-l3-protocol.cc b/src/internet/model/ipv6-l3-protocol.cc index 6ac55c476..46735ce8f 100644 --- a/src/internet/model/ipv6-l3-protocol.cc +++ b/src/internet/model/ipv6-l3-protocol.cc @@ -936,8 +936,8 @@ void Ipv6L3Protocol::Receive (Ptr device, Ptr p, uint16 NS_LOG_FUNCTION (this << device << p << protocol << from << to << packetType); NS_LOG_LOGIC ("Packet from " << from << " received on node " << m_node->GetId ()); - int32_t interface = GetInterfaceForDevice(device); - NS_ASSERT_MSG (interface != -1, "Received a packet from an interface that is not known to IPv6"); + NS_ASSERT_MSG (GetInterfaceForDevice(device) != -1, "Received a packet from an interface that is not known to IPv6"); + uint32_t interface = GetInterfaceForDevice(device); Ptr ipv6Interface = m_interfaces[interface]; Ptr packet = p->Copy ();