Cleanup of vector_ref.h

This commit is contained in:
chriseth
2017-08-25 19:36:48 +02:00
parent 6475bd9a72
commit 6951a371ec
2 changed files with 9 additions and 32 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ void LinkerObject::link(map<string, h160> const& _libraryAddresses)
std::map<size_t, std::string> remainingRefs;
for (auto const& linkRef: linkReferences)
if (h160 const* address = matchLibrary(linkRef.second, _libraryAddresses))
address->ref().copyTo(ref(bytecode).cropped(linkRef.first, 20));
copy(address->data(), address->data() + 20, bytecode.begin() + linkRef.first);
else
remainingRefs.insert(linkRef);
linkReferences.swap(remainingRefs);