mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-06-26 06:25:22 +02:00
c++11 unit tests silent warning fixes proposal.
This commit is contained in:
parent
fbf5b9d74c
commit
698a482b67
@ -183,7 +183,7 @@ TEST(MSGPACK_CPP11, simple_buffer_array_char)
|
||||
for (unsigned int k = 0; k < kLoop; k++) {
|
||||
array<char, kElements> val1;
|
||||
for (unsigned int i = 0; i < kElements; i++)
|
||||
val1[i] = rand();
|
||||
val1[i] = static_cast<char>(rand());
|
||||
msgpack::sbuffer sbuf;
|
||||
msgpack::pack(sbuf, val1);
|
||||
msgpack::object_handle oh =
|
||||
@ -214,7 +214,7 @@ TEST(MSGPACK_CPP11, simple_buffer_array_unsigned_char)
|
||||
for (unsigned int k = 0; k < kLoop; k++) {
|
||||
array<unsigned char, kElements> val1;
|
||||
for (unsigned int i = 0; i < kElements; i++)
|
||||
val1[i] = rand();
|
||||
val1[i] = static_cast<unsigned char>(rand());
|
||||
msgpack::sbuffer sbuf;
|
||||
msgpack::pack(sbuf, val1);
|
||||
msgpack::object_handle oh =
|
||||
|
Loading…
x
Reference in New Issue
Block a user