aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorLianaHus <liana@ethdev.com>2015-09-09 23:37:05 +0800
committerLianaHus <liana@ethdev.com>2015-09-15 17:40:19 +0800
commitede1f4b153d010cb3d2b4e7182630baa6f241938 (patch)
tree1a1202b67862312223056ac310f512c9533dd53e /libsolidity
parente21632555c1a9df86341d773af88bade4825d674 (diff)
downloaddexon-solidity-ede1f4b153d010cb3d2b4e7182630baa6f241938.tar
dexon-solidity-ede1f4b153d010cb3d2b4e7182630baa6f241938.tar.gz
dexon-solidity-ede1f4b153d010cb3d2b4e7182630baa6f241938.tar.bz2
dexon-solidity-ede1f4b153d010cb3d2b4e7182630baa6f241938.tar.lz
dexon-solidity-ede1f4b153d010cb3d2b4e7182630baa6f241938.tar.xz
dexon-solidity-ede1f4b153d010cb3d2b4e7182630baa6f241938.tar.zst
dexon-solidity-ede1f4b153d010cb3d2b4e7182630baa6f241938.zip
Update ExpressionCompiler.cpp
Conflicts: libsolidity/ExpressionCompiler.cpp
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/ExpressionCompiler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/ExpressionCompiler.cpp b/libsolidity/ExpressionCompiler.cpp
index 06cccc24..4e607afd 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<IntegerConstantType const&>(indexType);
if (arrayType.length() < constant.literalValue(nullptr))