From f126f86da5acf088f24e97ecb32f9ba5a1789aa4 Mon Sep 17 00:00:00 2001 From: Angelo Mantellini Date: Fri, 8 Feb 2019 15:11:57 +0100 Subject: [HICN-44] Remove warnings libhicn (lib) on windows Change-Id: I637e9c1e05de8a9e6743ea729b62d3eedd6ca54b Signed-off-by: Angelo Mantellini --- lib/src/protocol/ipv6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/src/protocol/ipv6.c') diff --git a/lib/src/protocol/ipv6.c b/lib/src/protocol/ipv6.c index 1cdcc75c0..7554eadf2 100644 --- a/lib/src/protocol/ipv6.c +++ b/lib/src/protocol/ipv6.c @@ -341,7 +341,7 @@ ipv6_set_payload_length (hicn_type_t type, hicn_protocol_t * h, int rc = CHILD_OPS (get_header_length, type, h, &child_header_length); if (rc < 0) return rc; - h->ipv6.len = htons (payload_length + child_header_length); + h->ipv6.len = htons ( (u_short) (payload_length + child_header_length)); return HICN_LIB_ERROR_NONE; } -- cgit 1.2.3-korg