Update ExpressionCompiler.cpp

Conflicts:
	libsolidity/ExpressionCompiler.cpp
This commit is contained in:
LianaHus 2015-09-09 17:37:05 +02:00
parent e21632555c
commit ede1f4b153

View File

@ -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))