From ede1f4b153d010cb3d2b4e7182630baa6f241938 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Wed, 9 Sep 2015 17:37:05 +0200 Subject: [PATCH] Update ExpressionCompiler.cpp Conflicts: libsolidity/ExpressionCompiler.cpp --- libsolidity/ExpressionCompiler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsolidity/ExpressionCompiler.cpp b/libsolidity/ExpressionCompiler.cpp index 06cccc249..4e607afdc 100644 --- a/libsolidity/ExpressionCompiler.cpp +++ b/libsolidity/ExpressionCompiler.cpp @@ -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(indexType); if (arrayType.length() < constant.literalValue(nullptr))