aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-03-23 05:26:10 +0800
committerGav Wood <i@gavwood.com>2015-03-23 05:26:10 +0800
commit7d4c44f7f3949b4583302f76aa1033398f30856b (patch)
tree0144356df5fe270f8e7531d19702cb04569f8a97
parentdefaebaa7bd919db21db95f2538b36e3193ef8e1 (diff)
downloaddexon-solidity-7d4c44f7f3949b4583302f76aa1033398f30856b.tar.gz
dexon-solidity-7d4c44f7f3949b4583302f76aa1033398f30856b.tar.zst
dexon-solidity-7d4c44f7f3949b4583302f76aa1033398f30856b.zip
Fix signed/unsigned mismatch.
-rw-r--r--peer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/peer.cpp b/peer.cpp
index ba8fb0b6..bfb4680d 100644
--- a/peer.cpp
+++ b/peer.cpp
@@ -90,7 +90,7 @@ BOOST_AUTO_TEST_CASE(save_nodes)
RLP r(firstHostNetwork);
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[2].itemCount(), 5);
}