diff options
| author | Tilka <tilkax@gmail.com> | 2024-10-11 20:28:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-11 20:28:06 +0100 |
| commit | d2a56b321fb8957c8bb13911ef2b60a89c244de4 (patch) | |
| tree | d140ff1fa93560952e0f2fc62c3c0e6ffc24896b /Source/Core/DiscIO/DirectoryBlob.cpp | |
| parent | c1832d17f657ba885815f53881784ea12a87c532 (diff) | |
| parent | b6ec8ddc206ea8da474348e801758051d6470b79 (diff) | |
Merge pull request #13095 from mitaclaw/ranges-modernization-6-n
Ranges Algorithms Modernization - N
Diffstat (limited to 'Source/Core/DiscIO/DirectoryBlob.cpp')
| -rw-r--r-- | Source/Core/DiscIO/DirectoryBlob.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/DirectoryBlob.cpp b/Source/Core/DiscIO/DirectoryBlob.cpp index 7cd7e12def..8129684575 100644 --- a/Source/Core/DiscIO/DirectoryBlob.cpp +++ b/Source/Core/DiscIO/DirectoryBlob.cpp @@ -107,8 +107,7 @@ bool DiscContent::Read(u64* offset, u64* length, u8** buffer, DirectoryBlobReade else if (std::holds_alternative<ContentMemory>(m_content_source)) { const auto& content = std::get<ContentMemory>(m_content_source); - std::copy(content->begin() + offset_in_content, - content->begin() + offset_in_content + bytes_to_read, *buffer); + std::copy_n(content->begin() + offset_in_content, bytes_to_read, *buffer); } else if (std::holds_alternative<ContentPartition>(m_content_source)) { |
