Emulator: Dont take a signed number as size
This commit is contained in:
+1
-1
@@ -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<uint8_t> memory(size);
|
||||
m_memory_spaces.emplace(name, memory);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user