Convert the property list values into int32_t to support the larger property values when an int is 8-bit or 16-bit. (#1145)
This commit is contained in:
@@ -287,7 +287,7 @@ static void test_BVLC_Register_Foreign_Device_Message(uint16_t ttl_seconds)
|
||||
uint8_t message_type = 0;
|
||||
uint16_t length = 0;
|
||||
int len = 0, test_len = 0;
|
||||
const int msg_len = 6;
|
||||
const int32_t msg_len = 6;
|
||||
|
||||
len = bvlc_encode_register_foreign_device(pdu, sizeof(pdu), ttl_seconds);
|
||||
zassert_equal(len, msg_len, NULL);
|
||||
@@ -323,7 +323,7 @@ static void test_BVLC_Delete_Foreign_Device_Message(
|
||||
uint8_t message_type = 0;
|
||||
uint16_t length = 0;
|
||||
int len = 0, test_len = 0;
|
||||
const int msg_len = 0x000A;
|
||||
const int32_t msg_len = 0x000A;
|
||||
|
||||
len = bvlc_encode_delete_foreign_device(
|
||||
pdu, sizeof(pdu), &fdt_entry->dest_address);
|
||||
|
||||
Reference in New Issue
Block a user