Work around bug in u256->unsigned conversion for MSVC/Boost.

This commit is contained in:
chriseth 2015-11-16 11:48:38 +01:00
parent b4c46201ef
commit 5caad351f8

View File

@ -34,7 +34,8 @@ using namespace std;
using namespace dev; using namespace dev;
using namespace dev::eth; using namespace dev::eth;
BlockId::BlockId(u256 const& _id): m_id(_id) BlockId::BlockId(u256 const& _id):
m_id(unsigned(_id))
{ {
assertThrow( _id < initial().m_id, OptimizerException, "Tag number too large."); assertThrow( _id < initial().m_id, OptimizerException, "Tag number too large.");
} }