1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-23 05:29:23 +00:00

Improve const correctness.

This commit is contained in:
Thomas Harte 2024-01-04 10:29:38 -05:00
parent 4affbe7556
commit bfbaebb661

View File

@ -64,8 +64,8 @@ class MemoryMap {
};
};
const Region &region(uint32_t address) { return regions[region_map[address >> 8]]; }
uint8_t read(const Region &region, uint32_t address) {
const Region &region(uint32_t address) const { return regions[region_map[address >> 8]]; }
uint8_t read(const Region &region, uint32_t address) const {
return region.read ? region.read[address] : 0xff;
}