aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-11-16 18:48:38 +0800
committerchriseth <c@ethdev.com>2015-11-16 18:48:38 +0800
commit5caad351f88e54afa6c38074938c18705fdd319c (patch)
tree639eebe8aa02a8dbc54cb047af209016994deb23
parentb4c46201ef8c46594f442e9b11bf22a8a04b642e (diff)
downloaddexon-solidity-5caad351f88e54afa6c38074938c18705fdd319c.tar.gz
dexon-solidity-5caad351f88e54afa6c38074938c18705fdd319c.tar.zst
dexon-solidity-5caad351f88e54afa6c38074938c18705fdd319c.zip
Work around bug in u256->unsigned conversion for MSVC/Boost.
-rw-r--r--ControlFlowGraph.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ControlFlowGraph.cpp b/ControlFlowGraph.cpp
index 41a53aa8..5adb951a 100644
--- a/ControlFlowGraph.cpp
+++ b/ControlFlowGraph.cpp
@@ -34,7 +34,8 @@ using namespace std;
using namespace dev;
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.");
}