diff options
author | Christian <c@ethdev.com> | 2015-02-12 22:44:35 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-02-12 22:44:35 +0800 |
commit | b836d952b245935a0c03352fb0c80bd03c2f4b55 (patch) | |
tree | a3d7c60d0dbb60dce2bd916a5f0598044ffe6e0b /ExpressionCompiler.cpp | |
parent | 5e40b7942689ffa5777ee88fe90d424608027656 (diff) | |
download | dexon-solidity-b836d952b245935a0c03352fb0c80bd03c2f4b55.tar.gz dexon-solidity-b836d952b245935a0c03352fb0c80bd03c2f4b55.tar.zst dexon-solidity-b836d952b245935a0c03352fb0c80bd03c2f4b55.zip |
length member for byte arrays.
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r-- | ExpressionCompiler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp index 63132a12..3dbb4012 100644 --- a/ExpressionCompiler.cpp +++ b/ExpressionCompiler.cpp @@ -504,6 +504,12 @@ void ExpressionCompiler::endVisit(MemberAccess const& _memberAccess) } BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Invalid member access to " + type.toString())); } + case Type::Category::ByteArray: + { + solAssert(member == "length", "Illegal bytearray member."); + m_context << eth::Instruction::SLOAD; + break; + } default: BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Member access to unknown type.")); } |