aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-06-04 17:02:34 +0800
committerchriseth <c@ethdev.com>2015-06-05 23:34:26 +0800
commit81ed5612bc33caa4cd1dd0bf1741637afa070e4c (patch)
treefad48934b039b6ef02f29eaad60881cd8ba286d8
parent88096c2c694983da327fd0fc46c31dc6f7404f73 (diff)
downloaddexon-solidity-81ed5612bc33caa4cd1dd0bf1741637afa070e4c.tar.gz
dexon-solidity-81ed5612bc33caa4cd1dd0bf1741637afa070e4c.tar.zst
dexon-solidity-81ed5612bc33caa4cd1dd0bf1741637afa070e4c.zip
MSVC fix.
-rw-r--r--ConstantOptimiser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ConstantOptimiser.cpp b/ConstantOptimiser.cpp
index 77d1bdfa..80a2dc18 100644
--- a/ConstantOptimiser.cpp
+++ b/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()