Commit c831a1e6 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[2491] Corrected the type of reference data.

With this fix we avoid narrowing conversion from signed to unsigned value.
parent b1d0e427
......@@ -121,7 +121,7 @@ TEST_F(OptionDataTypesTest, writeAddress) {
// Encode an IPv6 address 2001:db8:1::1 in wire format.
// This will be used as reference data to validate if
// an IPv6 address is stored in a buffer properly.
const char data[] = {
const uint8_t data[] = {
0x20, 0x01, 0x0d, 0xb8, 0x0, 0x1, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1
};
......@@ -316,7 +316,7 @@ TEST_F(OptionDataTypesTest, readInt) {
// types are correctly written to a buffer.
TEST_F(OptionDataTypesTest, writeInt) {
// Prepare the reference buffer.
const char data[] = {
const uint8_t data[] = {
0x7F, // 127
0x03, 0xFF, // 1023
0x00, 0x00, 0x10, 0x00, // 4096
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment