From 83bf34c571023cb264c56b3bd791a6fd9ebc3bf2 Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 22 Mar 2017 19:02:27 +0100 Subject: Review comments and cleanup. --- libsolidity/analysis/TypeChecker.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libsolidity/analysis') 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(declaration)) -- cgit