1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-01-26 06:16:22 +00:00

Use std::copy_n where it more directly matches intent.

This commit is contained in:
Thomas Harte
2025-12-10 22:23:42 -05:00
parent c491ba5cac
commit 67171f348a
16 changed files with 30 additions and 38 deletions

View File

@@ -154,7 +154,7 @@ public:
std::cerr << "No BIOS found; attempting to start cartridge directly" << std::endl;
} else {
has_bios_ = true;
std::copy(rom->second.begin(), rom->second.begin() + std::min(sizeof(bios_), rom->second.size()), bios_);
std::copy_n(rom->second.begin(), std::min(sizeof(bios_), rom->second.size()), bios_);
}
page_cartridge();