mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove fallthrough from ArrayUtils
This commit is contained in:
parent
ec6d8007db
commit
5c73a80418
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user