aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerUtils.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-03-31 20:59:38 +0800
committerchriseth <c@ethdev.com>2015-04-16 00:06:41 +0800
commit5216a9bc678597c0076b2e8615cac43c9077a95e (patch)
treeec2ec1dc821bfb0348458eaadf1b4336d7d609ad /CompilerUtils.cpp
parente1b20fb3a10f629aff172399c6e6111c941f931d (diff)
downloaddexon-solidity-5216a9bc678597c0076b2e8615cac43c9077a95e.tar.gz
dexon-solidity-5216a9bc678597c0076b2e8615cac43c9077a95e.tar.zst
dexon-solidity-5216a9bc678597c0076b2e8615cac43c9077a95e.zip
Some cleanup concerning byte arrays.
Diffstat (limited to 'CompilerUtils.cpp')
-rw-r--r--CompilerUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/CompilerUtils.cpp b/CompilerUtils.cpp
index 45495114..8d3e9d2a 100644
--- a/CompilerUtils.cpp
+++ b/CompilerUtils.cpp
@@ -93,7 +93,7 @@ void CompilerUtils::storeInMemoryDynamic(Type const& _type, bool _padToWordBound
else
{
solAssert(type.getLocation() == ArrayType::Location::Storage, "Memory arrays not yet implemented.");
- m_context << eth::Instruction::POP; //@todo
+ m_context << eth::Instruction::POP; // remove offset, arrays always start new slot
m_context << eth::Instruction::DUP1 << eth::Instruction::SLOAD;
// stack here: memory_offset storage_offset length_bytes
// jump to end if length is zero