aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-01-24 19:06:21 +0800
committerchriseth <c@ethdev.com>2017-01-24 19:07:09 +0800
commit7e6f1b3f0008d03e6cdfa186b8f9976570865d4e (patch)
tree61d885925d35a2ff0f8fa58e238043a6177f3210 /libsolidity
parent23eca813f578463383afd37b76ce49d87f79c811 (diff)
downloaddexon-solidity-7e6f1b3f0008d03e6cdfa186b8f9976570865d4e.tar.gz
dexon-solidity-7e6f1b3f0008d03e6cdfa186b8f9976570865d4e.tar.zst
dexon-solidity-7e6f1b3f0008d03e6cdfa186b8f9976570865d4e.zip
Use int arithmetics for stack adjustment.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/codegen/CompilerContext.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}