diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-08-22 19:24:49 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-10-07 15:34:56 -0700 |
| commit | b6ec8ddc206ea8da474348e801758051d6470b79 (patch) | |
| tree | f63cd81aa5e9aef4fcfc414a447374a68eb83fa6 /Source/Core/DiscIO | |
| parent | 7c96762f5f4cf5d9952fbf4093a4173f0ced989a (diff) | |
Simplify `std::fill` with `std::fill_n`
Diffstat (limited to 'Source/Core/DiscIO')
| -rw-r--r-- | Source/Core/DiscIO/Blob.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/Blob.cpp b/Source/Core/DiscIO/Blob.cpp index 4d6b356473..6be4692879 100644 --- a/Source/Core/DiscIO/Blob.cpp +++ b/Source/Core/DiscIO/Blob.cpp @@ -203,7 +203,7 @@ u32 SectorReader::ReadChunk(u8* buffer, u64 chunk_num) { if (!GetBlock(block_num + i, buffer)) { - std::fill(buffer, buffer + (cnt_blocks - i) * m_block_size, 0u); + std::fill_n(buffer, (cnt_blocks - i) * m_block_size, 0u); return i; } buffer += m_block_size; |
