diff options
Diffstat (limited to 'dev/LibCompiler/src')
| -rw-r--r-- | dev/LibCompiler/src/DynamicLinkerPEF.cc | 7 | ||||
| -rw-r--r-- | dev/LibCompiler/src/StringView.cc (renamed from dev/LibCompiler/src/String.cc) | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/dev/LibCompiler/src/DynamicLinkerPEF.cc b/dev/LibCompiler/src/DynamicLinkerPEF.cc index 4a7bb49..924f587 100644 --- a/dev/LibCompiler/src/DynamicLinkerPEF.cc +++ b/dev/LibCompiler/src/DynamicLinkerPEF.cc @@ -411,10 +411,9 @@ LIBCOMPILER_MODULE(DynamicLinker64PEF) reader_protocol.FP.seekg(std::streamsize(ae_header.fStartCode)); reader_protocol.FP.read(bytes.data(), std::streamsize(ae_header.fCodeSize)); - for (auto& byte : bytes) - { - kObjectBytes.push_back({.mBlob = bytes, .mOffset = ae_header.fStartCode}); - } + kObjectBytes.push_back({.mBlob = bytes, .mOffset = ae_header.fStartCode}); + + // Blob was written, close fp. reader_protocol.FP.close(); diff --git a/dev/LibCompiler/src/String.cc b/dev/LibCompiler/src/StringView.cc index 1ecbd7a..186d475 100644 --- a/dev/LibCompiler/src/String.cc +++ b/dev/LibCompiler/src/StringView.cc @@ -18,7 +18,7 @@ * */ -#include <LibCompiler/NFC/String.h> +#include <LibCompiler/NFC/StringView.h> namespace LibCompiler { |
