From 84a9ddb2db8b252356905e51f825f08b4f454d5c Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Wed, 20 Apr 2016 06:55:24 +0200 Subject: [PATCH] gnrc_sixlowpan_iphc: fix comparison signage --- sys/net/gnrc/network_layer/sixlowpan/iphc/gnrc_sixlowpan_iphc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/gnrc/network_layer/sixlowpan/iphc/gnrc_sixlowpan_iphc.c b/sys/net/gnrc/network_layer/sixlowpan/iphc/gnrc_sixlowpan_iphc.c index 3874828214..0095d1b661 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/iphc/gnrc_sixlowpan_iphc.c +++ b/sys/net/gnrc/network_layer/sixlowpan/iphc/gnrc_sixlowpan_iphc.c @@ -566,7 +566,7 @@ inline static size_t iphc_nhc_udp_encode(gnrc_pktsnip_t *udp, ipv6_hdr_t *ipv6_h if (udp->type == GNRC_NETTYPE_IPV6) { /* forwarded ipv6 packet */ size_t diff = sizeof(udp_hdr_t) - nhc_len; - for (int i = nhc_len; i < (udp->size - diff); i++) { + for (size_t i = nhc_len; i < (udp->size - diff); i++) { udp_data[i] = udp_data[i + diff]; } /* NOTE: gnrc_pktbuf_realloc_data overflow if (udp->size - diff) < 4 */