From 754549b40dd6c0d61b0511d2a8db81058d3c9b34 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 00:40:59 +0200 Subject: [PATCH] tests/unittests/tests-ipv6_hdr: Cast to uint32_t to avoid truncation on msp430 --- tests/unittests/tests-ipv6_hdr/tests-ipv6_hdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unittests/tests-ipv6_hdr/tests-ipv6_hdr.c b/tests/unittests/tests-ipv6_hdr/tests-ipv6_hdr.c index 1d155af683..0aea586e89 100644 --- a/tests/unittests/tests-ipv6_hdr/tests-ipv6_hdr.c +++ b/tests/unittests/tests-ipv6_hdr/tests-ipv6_hdr.c @@ -244,7 +244,7 @@ static void test_ipv6_hdr_get_fl(void) * | 6 | tc | flow label | * +----+--------+--------------------+ */ - TEST_ASSERT_EQUAL_INT((OTHER_BYTE & 0x0f) << 16, + TEST_ASSERT_EQUAL_INT((uint32_t)(OTHER_BYTE & 0x0f) << 16, ng_ipv6_hdr_get_fl((ng_ipv6_hdr_t *)val)); }