aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-25 21:33:35 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-25 22:57:27 +0800
commit5c73a80418db42970c06959945cd0b5b413806f9 (patch)
tree8782d5dc8334badf1dc1220af838f1ebf4921aaa /libsolidity
parentec6d8007db3577c7899a0ef531a8c9b632156860 (diff)
downloaddexon-solidity-5c73a80418db42970c06959945cd0b5b413806f9.tar.gz
dexon-solidity-5c73a80418db42970c06959945cd0b5b413806f9.tar.zst
dexon-solidity-5c73a80418db42970c06959945cd0b5b413806f9.zip
Remove fallthrough from ArrayUtils
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/codegen/ArrayUtils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/codegen/ArrayUtils.cpp b/libsolidity/codegen/ArrayUtils.cpp
index 67ca22f1..e17188c2 100644
--- a/libsolidity/codegen/ArrayUtils.cpp
+++ b/libsolidity/codegen/ArrayUtils.cpp
@@ -913,10 +913,10 @@ void ArrayUtils::accessIndex(ArrayType const& _arrayType, bool _doBoundsCheck) c
switch (location)
{
case DataLocation::Memory:
- if (_arrayType.isDynamicallySized())
- m_context << u256(32) << Instruction::ADD;
- // fall-through
case DataLocation::CallData:
+ if (location == DataLocation::Memory && _arrayType.isDynamicallySized())
+ m_context << u256(32) << Instruction::ADD;
+
if (!_arrayType.isByteArray())
{
m_context << Instruction::SWAP1;