From b0bbeee21b531e2c7a9317932446e0e5b71b27fc Mon Sep 17 00:00:00 2001 From: Tim Hughes Date: Mon, 24 Mar 2014 15:39:27 +0000 Subject: [PATCH] Fix VS2013 compile warnings. --- libethereum/State.cpp | 2 +- libethereum/VM.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libethereum/State.cpp b/libethereum/State.cpp index ebf077b92..509070e79 100644 --- a/libethereum/State.cpp +++ b/libethereum/State.cpp @@ -698,7 +698,7 @@ bool State::call(Address _myAddress, Address _txSender, u256 _txValue, u256 _gas auto out = vm.go(evm); memcpy(_out.data(), out.data(), std::min(out.size(), _out.size())); } - catch (OutOfGas const& _e) + catch (OutOfGas const& /*_e*/) { clog(StateChat) << "Out of Gas! Reverting."; revert = true; diff --git a/libethereum/VM.h b/libethereum/VM.h index f9b008534..ff602c4fb 100644 --- a/libethereum/VM.h +++ b/libethereum/VM.h @@ -91,7 +91,7 @@ template eth::bytesConstRef eth::VM::go(Ext& _ext, uint64_t _steps) // FEES... bigint runGas = c_stepGas; - unsigned newTempSize = m_temp.size(); + unsigned newTempSize = (unsigned)m_temp.size(); switch (inst) { case Instruction::SSTORE: @@ -150,7 +150,7 @@ template eth::bytesConstRef eth::VM::go(Ext& _ext, uint64_t _steps) unsigned inSize = (unsigned)m_stack[m_stack.size() - 3]; newTempSize = inOff + inSize; - unsigned wc = std::min(inSize / 32 * 32 + inOff, m_temp.size()); + unsigned wc = std::min(inSize / 32 * 32 + inOff, (unsigned)m_temp.size()); unsigned nonZero = 0; for (unsigned i = inOff; i < wc; i += 32) if (!!*(h256*)(m_temp.data() + inOff))