aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/Assembly.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-10-01 20:53:45 +0800
committerchriseth <c@ethdev.com>2015-10-01 22:50:11 +0800
commit6161ec96ff4a449d6fffa3d1e54c3fa38911c2bb (patch)
tree4860eb391362a98e8346ae5b80850970dfedbd59 /test/libsolidity/Assembly.cpp
parent5f6c3cdf5414af457569041d1fdf6caa4cf9a82c (diff)
downloaddexon-solidity-6161ec96ff4a449d6fffa3d1e54c3fa38911c2bb.tar.gz
dexon-solidity-6161ec96ff4a449d6fffa3d1e54c3fa38911c2bb.tar.zst
dexon-solidity-6161ec96ff4a449d6fffa3d1e54c3fa38911c2bb.zip
Bugfix in calldata unpacker.
The offset was not specified correctly if memory activity preceded the unpacker.
Diffstat (limited to 'test/libsolidity/Assembly.cpp')
-rw-r--r--test/libsolidity/Assembly.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libsolidity/Assembly.cpp b/test/libsolidity/Assembly.cpp
index b4678611..ca1e8980 100644
--- a/test/libsolidity/Assembly.cpp
+++ b/test/libsolidity/Assembly.cpp
@@ -108,7 +108,7 @@ BOOST_AUTO_TEST_CASE(location_test)
AssemblyItems items = compileContract(sourceCode);
vector<SourceLocation> locations =
vector<SourceLocation>(17, SourceLocation(2, 75, n)) +
- vector<SourceLocation>(26, SourceLocation(20, 72, n)) +
+ vector<SourceLocation>(28, SourceLocation(20, 72, n)) +
vector<SourceLocation>{SourceLocation(42, 51, n), SourceLocation(65, 67, n)} +
vector<SourceLocation>(4, SourceLocation(58, 67, n)) +
vector<SourceLocation>(3, SourceLocation(20, 72, n));