diff options
author | chriseth <c@ethdev.com> | 2015-03-05 22:41:39 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-03-05 22:41:39 +0800 |
commit | 280df42463c61786dd2dac0106d3f23c1b3c4275 (patch) | |
tree | 483dd3f6bf6ca2a9a87504fcf3617b7b746230d9 /CompilerUtils.cpp | |
parent | b84cf62d6bd3a9caa8a9a7f1dcd427418170aed9 (diff) | |
download | dexon-solidity-280df42463c61786dd2dac0106d3f23c1b3c4275.tar.gz dexon-solidity-280df42463c61786dd2dac0106d3f23c1b3c4275.tar.zst dexon-solidity-280df42463c61786dd2dac0106d3f23c1b3c4275.zip |
Styling
Diffstat (limited to 'CompilerUtils.cpp')
-rw-r--r-- | CompilerUtils.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/CompilerUtils.cpp b/CompilerUtils.cpp index acb6412f..7f8f72ca 100644 --- a/CompilerUtils.cpp +++ b/CompilerUtils.cpp @@ -33,8 +33,12 @@ namespace solidity const unsigned int CompilerUtils::dataStartOffset = 4; -unsigned CompilerUtils::loadFromMemory(unsigned _offset, Type const& _type, - bool _fromCalldata, bool _padToWordBoundaries) +unsigned CompilerUtils::loadFromMemory( + unsigned _offset, + Type const& _type, + bool _fromCalldata, + bool _padToWordBoundaries +) { solAssert(_type.getCategory() != Type::Category::Array, "Unable to statically load dynamic type."); m_context << u256(_offset); @@ -42,7 +46,11 @@ unsigned CompilerUtils::loadFromMemory(unsigned _offset, Type const& _type, } void CompilerUtils::loadFromMemoryDynamic( - Type const& _type, bool _fromCalldata, bool _padToWordBoundaries, bool _keepUpdatedMemoryOffset) + Type const& _type, + bool _fromCalldata, + bool _padToWordBoundaries, + bool _keepUpdatedMemoryOffset +) { solAssert(_type.getCategory() != Type::Category::Array, "Arrays not yet implemented."); if (_keepUpdatedMemoryOffset) |