replaced c-style array with c++ array
This commit is contained in:
@@ -10,9 +10,9 @@ Memory *Memory::getInstance() {
|
||||
}
|
||||
|
||||
void Memory::store(const int address, const int value) {
|
||||
m_memory[address] = value;
|
||||
m_memory.at(address) = value;
|
||||
}
|
||||
|
||||
int Memory::load(const int address) const {
|
||||
return m_memory[address];
|
||||
return m_memory.at(address);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user