aboutsummaryrefslogtreecommitdiffstats
path: root/LValue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'LValue.cpp')
-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) <<