aboutsummaryrefslogtreecommitdiffstats
path: root/vm.cpp
diff options
context:
space:
mode:
authorPaweł Bylica <pawel.bylica@imapp.pl>2014-12-12 03:39:48 +0800
committerPaweł Bylica <pawel.bylica@imapp.pl>2014-12-12 03:39:48 +0800
commit6b8bc1669e0f2e5ade21ad6ae6cc4ef7e024dd2c (patch)
treebf5e5f49f65f97042da46975fe40a3f0f60af933 /vm.cpp
parent1d85b074c85ec82175a4e8cab723791b63e6b6db (diff)
parent1d879a9bb451943add6bb2bd68cad3c79e6aa50e (diff)
downloaddexon-solidity-6b8bc1669e0f2e5ade21ad6ae6cc4ef7e024dd2c.tar.gz
dexon-solidity-6b8bc1669e0f2e5ade21ad6ae6cc4ef7e024dd2c.tar.zst
dexon-solidity-6b8bc1669e0f2e5ade21ad6ae6cc4ef7e024dd2c.zip
Merge remote-tracking branch 'upstream/develop' into vm
Conflicts: libethereum/Executive.cpp libethereum/Executive.h libethereum/State.cpp
Diffstat (limited to 'vm.cpp')
-rw-r--r--vm.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/vm.cpp b/vm.cpp
index 02cee0a0..d8e85383 100644
--- a/vm.cpp
+++ b/vm.cpp
@@ -243,10 +243,11 @@ void FakeExtVM::importCallCreates(mArray& _callcreates)
eth::OnOpFunc FakeExtVM::simpleTrace()
{
- return [](uint64_t steps, eth::Instruction inst, bigint newMemSize, bigint gasCost, void* voidVM, void const* voidExt)
+
+ return [](uint64_t steps, eth::Instruction inst, bigint newMemSize, bigint gasCost, dev::eth::VM* voidVM, dev::eth::ExtVMFace const* voidExt)
{
- FakeExtVM const& ext = *(FakeExtVM const*)voidExt;
- eth::VM& vm = *(eth::VM*)voidVM;
+ FakeExtVM const& ext = *static_cast<FakeExtVM const*>(voidExt);
+ eth::VM& vm = *voidVM;
std::ostringstream o;
o << std::endl << " STACK" << std::endl;