mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update ExpressionCompiler.cpp
Conflicts: libsolidity/ExpressionCompiler.cpp
This commit is contained in:
parent
e21632555c
commit
ede1f4b153
@ -867,7 +867,8 @@ bool ExpressionCompiler::visit(IndexAccess const& _indexAccess)
|
||||
// check for dynamically sized arrays should be done after memberAccess visit to have length
|
||||
if (
|
||||
(indexType.category() == Type::Category::IntegerConstant) &&
|
||||
((arrayType.isDynamicallySized() && arrayType.length()) || !arrayType.isDynamicallySized()))
|
||||
((arrayType.isDynamicallySized() && arrayType.length()) || !arrayType.isDynamicallySized())
|
||||
)
|
||||
{
|
||||
IntegerConstantType const& constant = dynamic_cast<IntegerConstantType const&>(indexType);
|
||||
if (arrayType.length() < constant.literalValue(nullptr))
|
||||
|
Loading…
Reference in New Issue
Block a user