Fix signed/unsigned mismatch.

This commit is contained in:
Gav Wood 2015-03-22 22:26:10 +01:00
parent defaebaa7b
commit 7d4c44f7f3

View File

@ -90,7 +90,7 @@ BOOST_AUTO_TEST_CASE(save_nodes)
RLP r(firstHostNetwork); RLP r(firstHostNetwork);
BOOST_REQUIRE(r.itemCount() == 3); BOOST_REQUIRE(r.itemCount() == 3);
BOOST_REQUIRE(r[0].toInt<int>() == dev::p2p::c_protocolVersion); BOOST_REQUIRE(r[0].toInt<unsigned>() == dev::p2p::c_protocolVersion);
BOOST_REQUIRE_EQUAL(r[1].toBytes().size(), 32); // secret BOOST_REQUIRE_EQUAL(r[1].toBytes().size(), 32); // secret
BOOST_REQUIRE_EQUAL(r[2].itemCount(), 5); BOOST_REQUIRE_EQUAL(r[2].itemCount(), 5);
} }