diff options
author | chriseth <chris@ethereum.org> | 2017-03-23 02:02:27 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-04-25 22:49:03 +0800 |
commit | 83bf34c571023cb264c56b3bd791a6fd9ebc3bf2 (patch) | |
tree | d53c3fe163612ef162a2b474b9e6f21fe1576112 /libsolidity/analysis/TypeChecker.cpp | |
parent | 3f1f0316c686f46600f3ab9ed4c65cda9bcc8a58 (diff) | |
download | dexon-solidity-83bf34c571023cb264c56b3bd791a6fd9ebc3bf2.tar dexon-solidity-83bf34c571023cb264c56b3bd791a6fd9ebc3bf2.tar.gz dexon-solidity-83bf34c571023cb264c56b3bd791a6fd9ebc3bf2.tar.bz2 dexon-solidity-83bf34c571023cb264c56b3bd791a6fd9ebc3bf2.tar.lz dexon-solidity-83bf34c571023cb264c56b3bd791a6fd9ebc3bf2.tar.xz dexon-solidity-83bf34c571023cb264c56b3bd791a6fd9ebc3bf2.tar.zst dexon-solidity-83bf34c571023cb264c56b3bd791a6fd9ebc3bf2.zip |
Review comments and cleanup.
Diffstat (limited to 'libsolidity/analysis/TypeChecker.cpp')
-rw-r--r-- | libsolidity/analysis/TypeChecker.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index 11c27238..2d6a782a 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -654,6 +654,8 @@ bool TypeChecker::visit(InlineAssembly const& _inlineAssembly) else if (!var->type()->isValueType()) valueSize = 1; else + // We cannot use `sizeOnStack()` here because we do not insert the value + // into inline assembly but rather the storage location. valueSize = 2; // slot number, intra slot offset } else if (auto contract = dynamic_cast<ContractDefinition const*>(declaration)) |