From 1c8eabf6ed41d8f57d8c4b21d43401c542ec99f5 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 4 Jun 2015 11:02:34 +0200 Subject: [PATCH] MSVC fix. --- libevmasm/ConstantOptimiser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libevmasm/ConstantOptimiser.cpp b/libevmasm/ConstantOptimiser.cpp index 77d1bdfaa..80a2dc180 100644 --- a/libevmasm/ConstantOptimiser.cpp +++ b/libevmasm/ConstantOptimiser.cpp @@ -127,8 +127,9 @@ bigint LiteralMethod::gasNeeded() } CodeCopyMethod::CodeCopyMethod(Params const& _params, u256 const& _value): - ConstantOptimisationMethod(_params, _value), - m_copyRoutine{ + ConstantOptimisationMethod(_params, _value) +{ + m_copyRoutine = AssemblyItems{ u256(0), eth::Instruction::DUP1, eth::Instruction::MLOAD, // back up memory @@ -140,8 +141,7 @@ CodeCopyMethod::CodeCopyMethod(Params const& _params, u256 const& _value): eth::Instruction::MLOAD, eth::Instruction::SWAP2, eth::Instruction::MSTORE - } -{ + }; } bigint CodeCopyMethod::gasNeeded()