aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-07-15 22:32:47 +0800
committerchriseth <c@ethdev.com>2015-07-16 04:11:17 +0800
commitc7c5de4dd351fd4a21052dcefc630f006de1fb1b (patch)
treef53d014b56507b0eb0ec32a55d7dbe58c923664e
parentd747f34466ed6b3f3be0ea0c0d5278a7670e4d57 (diff)
downloaddexon-solidity-c7c5de4dd351fd4a21052dcefc630f006de1fb1b.tar
dexon-solidity-c7c5de4dd351fd4a21052dcefc630f006de1fb1b.tar.gz
dexon-solidity-c7c5de4dd351fd4a21052dcefc630f006de1fb1b.tar.bz2
dexon-solidity-c7c5de4dd351fd4a21052dcefc630f006de1fb1b.tar.lz
dexon-solidity-c7c5de4dd351fd4a21052dcefc630f006de1fb1b.tar.xz
dexon-solidity-c7c5de4dd351fd4a21052dcefc630f006de1fb1b.tar.zst
dexon-solidity-c7c5de4dd351fd4a21052dcefc630f006de1fb1b.zip
Allow one additional stack slot.
Fixes: #2478
-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) <<