diff --git a/src/emu.cpp b/src/emu.cpp index a5cdcb2..549a1c4 100644 --- a/src/emu.cpp +++ b/src/emu.cpp @@ -24,7 +24,7 @@ void Emu::addProcessingUnit(ProcessingUnit* processing_unit) m_processing_units.push_back(processing_unit); } -void Emu::addMemorySpace(const char* name, int size) +void Emu::addMemorySpace(const char* name, uint32_t size) { std::vector memory(size); m_memory_spaces.emplace(name, memory); diff --git a/src/emu.h b/src/emu.h index 8a48da0..a6d6076 100644 --- a/src/emu.h +++ b/src/emu.h @@ -16,7 +16,7 @@ public: void update(); void addProcessingUnit(ProcessingUnit* processing_unit); - void addMemorySpace(const char* name, int size); + void addMemorySpace(const char* name, uint32_t size); void writeMemory(const char* memory_space, uint32_t location, uint8_t value);