1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-26 19:17:52 +00:00

Use std::fill_n where it's more natural.

This commit is contained in:
Thomas Harte
2025-12-07 09:33:27 -05:00
parent 461239e2e9
commit 6fb13a4903
9 changed files with 33 additions and 25 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ std::vector<uint8_t> read_memory(Storage::FileHolder &file, size_t size, bool is
const uint8_t count = file.get();
const uint8_t value = file.get();
std::fill(&result[cursor], &result[cursor + count], value);
std::fill_n(&result[cursor], count, value);
cursor += count;
}