From e457d74d1ce748ecf5045086d171b6267e25cfcf Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 15 Jul 2015 16:32:47 +0200 Subject: [PATCH] Allow one additional stack slot. Fixes: #2478 --- libsolidity/LValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsolidity/LValue.cpp b/libsolidity/LValue.cpp index c754bbfca..5c43fb82a 100644 --- a/libsolidity/LValue.cpp +++ b/libsolidity/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) <<