mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
tests/unittests/tests-ipv6_hdr: Cast to uint32_t to avoid truncation on msp430
This commit is contained in:
parent
153c97fc74
commit
754549b40d
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user