From 40693a1ad3dff3153e7d054254375923cf2126e8 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sun, 8 Mar 2015 11:36:48 +0100 Subject: [PATCH] Mac compile fixes. --- libethereum/Client.cpp | 2 +- libethereum/Executive.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libethereum/Client.cpp b/libethereum/Client.cpp index 4572e29b8..b6c310d34 100644 --- a/libethereum/Client.cpp +++ b/libethereum/Client.cpp @@ -67,7 +67,7 @@ void BasicGasPricer::update(BlockChain const& _bc) m_gasPerBlock = _bc.info(p).gasLimit; map dist; - unsigned total; + unsigned total = 0; while (c < 1000 && p) { BlockInfo bi = _bc.info(p); diff --git a/libethereum/Executive.cpp b/libethereum/Executive.cpp index 607c0187e..e009b49fb 100644 --- a/libethereum/Executive.cpp +++ b/libethereum/Executive.cpp @@ -176,7 +176,7 @@ OnOpFunc Executive::simpleTrace() o << endl << " STACK" << endl; for (auto i: vm.stack()) o << (h256)i << endl; - o << " MEMORY" << endl << (vm.memory().size() > 1000) ? " mem size greater than 1000 bytes " : memDump(vm.memory()); + o << " MEMORY" << endl << ((vm.memory().size() > 1000) ? " mem size greater than 1000 bytes " : memDump(vm.memory())); o << " STORAGE" << endl; for (auto const& i: ext.state().storage(ext.myAddress)) o << showbase << hex << i.first << ": " << i.second << endl;