aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-12-15 08:02:33 +0800
committerChristian <c@ethdev.com>2014-12-15 08:02:33 +0800
commit739192ae6591c18fdb22d6ef38485378134d247d (patch)
treec3ea122e0db53b1eda88f7e3a1972a815157a7e7 /ExpressionCompiler.cpp
parentc0bba438b1d93b3ebba46e03935dbdf8b1ba6bd5 (diff)
downloaddexon-solidity-739192ae6591c18fdb22d6ef38485378134d247d.tar.gz
dexon-solidity-739192ae6591c18fdb22d6ef38485378134d247d.tar.zst
dexon-solidity-739192ae6591c18fdb22d6ef38485378134d247d.zip
Correctly check for string prefix plus indentation change.
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r--ExpressionCompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp
index add5f73b..f872e058 100644
--- a/ExpressionCompiler.cpp
+++ b/ExpressionCompiler.cpp
@@ -291,7 +291,7 @@ void ExpressionCompiler::endVisit(MemberAccess const& _memberAccess)
IntegerType(0, IntegerType::Modifier::ADDRESS), true);
m_context << eth::Instruction::BALANCE;
}
- else if (member == "send" || member.substr(0, 4) == "call")
+ else if (member == "send" || member.substr(0, min<size_t>(member.size(), 4)) == "call")
appendTypeConversion(*_memberAccess.getExpression().getType(),
IntegerType(0, IntegerType::Modifier::ADDRESS), true);
else