Merge pull request #819 from devnexen/test_warning_fixes

c++11 unit tests silent warning fixes proposal.
This commit is contained in:
Takatoshi Kondo
2019-12-05 08:28:00 +09:00
committed by GitHub

View File

@@ -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 =