This commit is contained in:
Alex Beregszaszi 2022-12-06 20:31:28 +01:00
parent 8faf4d3879
commit b5a10cfa76

View File

@ -714,7 +714,7 @@ LinkerObject const& Assembly::assemble() const
// assertThrow(pos != numeric_limits<size_t>::max(), AssemblyException, "Reference to tag without position.");
if (isStaticTagRef.count(i.first)) {
pos = pos - (i.first + bytesPerStaticTag); // TODO: calculate relative figure properly
cout << "Change position of static jump to " << pos << "\n";
cout << "Change position of static jump to " << int16_t(pos) << "\n";
// assertThrow(numberEncodingSize(pos) <= bytesPerStaticTag, AssemblyException, "Tag too large for reserved space.");
//pos = static_cast<uint16_t>(spos);
bytesRef r(ret.bytecode.data() + i.first, bytesPerStaticTag);