1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 17:16:44 +00:00

Eliminate memset from C++ files.

This commit is contained in:
Thomas Harte
2025-12-06 10:55:32 -06:00
parent 171b890f0d
commit 6ac6157d06
14 changed files with 38 additions and 24 deletions
+2 -2
View File
@@ -8,7 +8,7 @@
#include "Keyboard.hpp"
#include <cstring>
#include <algorithm>
using namespace Sinclair::ZX::Keyboard;
@@ -339,7 +339,7 @@ void Keyboard::set_key_state(const uint16_t key, const bool is_pressed) {
}
void Keyboard::clear_all_keys() {
memset(key_states_, 0xff, 8);
std::fill(std::begin(key_states_), std::end(key_states_), 0xff);
}
uint8_t Keyboard::read(const uint16_t address) {