diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2019-11-23 13:39:52 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2020-01-09 15:55:03 +0100 |
commit | 78e8a778786bf3f9050e55d99dd2b4338e8f4a8e (patch) | |
tree | 8dde7b0f50ea497f7a79ba60909570305328cb26 /libs/bitfield-c/tests/write_tests.c | |
parent | d76433ade0b75c8cc2b45fdae52a21d7fb28f526 (diff) |
bitfield-c: use unsigned int instead of uint8_t
Use unsigned int instead of uint8_t upon destination and source array length.
This is needed to handle gathered multi-frames message data which could
be greater than 1 simple messages.
Bug-AGL: SPEC-2988
Change-Id: I107bff383c2d0771dbc2a30770ec5c195b1c22ac
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'libs/bitfield-c/tests/write_tests.c')
-rw-r--r-- | libs/bitfield-c/tests/write_tests.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/bitfield-c/tests/write_tests.c b/libs/bitfield-c/tests/write_tests.c index 4d5d8fc3..9e65b9d0 100644 --- a/libs/bitfield-c/tests/write_tests.c +++ b/libs/bitfield-c/tests/write_tests.c @@ -30,7 +30,7 @@ END_TEST START_TEST (test_bitfield_encode_float) { - uint8_t data[8] = {0}; + unsigned int data[8] = {0}; bitfield_encode_float(0, 1, 3, 1, 0, data, sizeof(data)); ck_assert_int_eq(data[0], 0); ck_assert_int_eq(data[1], 0); @@ -55,7 +55,7 @@ END_TEST START_TEST (test_bitfield_encode_bool) { - uint8_t data[8] = {0}; + unsigned int data[8] = {0}; bitfield_encode_bool(true, 1, 3, data, sizeof(data)); ck_assert_int_eq(data[0], 0x10); ck_assert_int_eq(data[1], 0); |