Skip to content

Commit eb765d2

Browse files
committed
Fixed MSVC++ warning about int to bool conversion.
1 parent 2d5c680 commit eb765d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/msgpack_container.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ TEST(MSGPACK_STL, simple_buffer_vector_bool)
5959
{
6060
vector<bool> val1;
6161
for (unsigned int i = 0; i < kElements; i++)
62-
val1.push_back(i % 2);
62+
val1.push_back(i % 2 ? false : true);
6363
msgpack::sbuffer sbuf;
6464
msgpack::pack(sbuf, val1);
6565
msgpack::unpacked ret;

0 commit comments

Comments
 (0)