diff options
author | chriseth <c@ethdev.com> | 2017-01-24 19:06:21 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-01-24 19:07:09 +0800 |
commit | 7e6f1b3f0008d03e6cdfa186b8f9976570865d4e (patch) | |
tree | 61d885925d35a2ff0f8fa58e238043a6177f3210 | |
parent | 23eca813f578463383afd37b76ce49d87f79c811 (diff) | |
download | dexon-solidity-7e6f1b3f0008d03e6cdfa186b8f9976570865d4e.tar.gz dexon-solidity-7e6f1b3f0008d03e6cdfa186b8f9976570865d4e.tar.zst dexon-solidity-7e6f1b3f0008d03e6cdfa186b8f9976570865d4e.zip |
Use int arithmetics for stack adjustment.
-rw-r--r-- | libsolidity/codegen/CompilerContext.cpp | 2 |
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(); } |