From de2237fac2b9e7d16da89ff3e3c9ef9eea3dc863 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Thu, 18 Aug 2022 02:06:02 +0200 Subject: [PATCH] Emulator: Dont take a signed number as size --- src/emu.cpp | 2 +- src/emu.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);