aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-07-16 18:32:49 +0800
committerchriseth <c@ethdev.com>2015-07-16 18:32:49 +0800
commit79a8effaa4f769ccfc567924d7e46a490e1961d5 (patch)
tree01e68d0fb0d4f97fe1c9488a0db473a226ffce57
parent63d603bccc68981843df5f96c6a90f04ed3968a1 (diff)
parentc7c5de4dd351fd4a21052dcefc630f006de1fb1b (diff)
downloaddexon-solidity-79a8effaa4f769ccfc567924d7e46a490e1961d5.tar
dexon-solidity-79a8effaa4f769ccfc567924d7e46a490e1961d5.tar.gz
dexon-solidity-79a8effaa4f769ccfc567924d7e46a490e1961d5.tar.bz2
dexon-solidity-79a8effaa4f769ccfc567924d7e46a490e1961d5.tar.lz
dexon-solidity-79a8effaa4f769ccfc567924d7e46a490e1961d5.tar.xz
dexon-solidity-79a8effaa4f769ccfc567924d7e46a490e1961d5.tar.zst
dexon-solidity-79a8effaa4f769ccfc567924d7e46a490e1961d5.zip
Merge pull request #2480 from chriseth/sol_relaxStackHeightCheck
Allow one additional stack slot.
-rw-r--r--LValue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/LValue.cpp b/LValue.cpp
index c754bbfc..5c43fb82 100644
--- a/LValue.cpp
+++ b/LValue.cpp
@@ -41,7 +41,7 @@ StackVariable::StackVariable(CompilerContext& _compilerContext, Declaration cons
void StackVariable::retrieveValue(SourceLocation const& _location, bool) const
{
unsigned stackPos = m_context.baseToCurrentStackOffset(m_baseStackOffset);
- if (stackPos >= 15) //@todo correct this by fetching earlier or moving to memory
+ if (stackPos + 1 > 16) //@todo correct this by fetching earlier or moving to memory
BOOST_THROW_EXCEPTION(
CompilerError() <<
errinfo_sourceLocation(_location) <<