mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-14 15:05:37 +02:00
Fixed MSVC++ warning about int to bool conversion.
This commit is contained in:
@@ -59,7 +59,7 @@ TEST(MSGPACK_STL, simple_buffer_vector_bool)
|
||||
{
|
||||
vector<bool> val1;
|
||||
for (unsigned int i = 0; i < kElements; i++)
|
||||
val1.push_back(i % 2);
|
||||
val1.push_back(i % 2 ? false : true);
|
||||
msgpack::sbuffer sbuf;
|
||||
msgpack::pack(sbuf, val1);
|
||||
msgpack::unpacked ret;
|
||||
|
Reference in New Issue
Block a user