From af887daccc4d09e5dc533ff090094d56175fdc8d Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Sun, 17 Apr 2022 17:44:25 +0200 Subject: [PATCH] f --- libevmasm/Assembly.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp index f45063505..af3bdd74f 100644 --- a/libevmasm/Assembly.cpp +++ b/libevmasm/Assembly.cpp @@ -712,7 +712,7 @@ LinkerObject const& Assembly::assemble() const size_t pos = tagPositions[tagId]; assertThrow(pos != numeric_limits::max(), AssemblyException, "Reference to tag without position."); if (isStaticTagRef.count(i.first)) { - pos = pos - (i.first + bytesPerStaticTag); // TODO: do properly + pos = pos - (i.first + bytesPerStaticTag); // TODO: calculate relative figure properly assertThrow(numberEncodingSize(pos) <= bytesPerStaticTag, AssemblyException, "Tag too large for reserved space."); //pos = static_cast(spos); bytesRef r(ret.bytecode.data() + i.first, bytesPerStaticTag);