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:
parent
4affbe7556
commit
bfbaebb661
@ -64,8 +64,8 @@ class MemoryMap {
|
||||
};
|
||||
};
|
||||
|
||||
const Region ®ion(uint32_t address) { return regions[region_map[address >> 8]]; }
|
||||
uint8_t read(const Region ®ion, uint32_t address) {
|
||||
const Region ®ion(uint32_t address) const { return regions[region_map[address >> 8]]; }
|
||||
uint8_t read(const Region ®ion, uint32_t address) const {
|
||||
return region.read ? region.read[address] : 0xff;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user