From 7e6f1b3f0008d03e6cdfa186b8f9976570865d4e Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 24 Jan 2017 12:06:21 +0100 Subject: Use int arithmetics for stack adjustment. --- libsolidity/codegen/CompilerContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libsolidity/codegen') diff --git a/libsolidity/codegen/CompilerContext.cpp b/libsolidity/codegen/CompilerContext.cpp index dad227c7..e26f96e8 100644 --- a/libsolidity/codegen/CompilerContext.cpp +++ b/libsolidity/codegen/CompilerContext.cpp @@ -81,7 +81,7 @@ void CompilerContext::callLowLevelFunction( else *this << it->second; appendJump(eth::AssemblyItem::JumpType::IntoFunction); - adjustStackOffset(_outArgs - 1 - _inArgs); + adjustStackOffset(int(_outArgs) - 1 - _inArgs); *this << retTag.tag(); } -- cgit