diff --git a/CMakeLists.txt b/CMakeLists.txt index 453fc87..73d2f2f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.12) -set(CMAKE_CXX_STANDARD 20) +set(CMAKE_CXX_STANDARD 17) # set the project name project(ComSquare) diff --git a/sources/Memory/IMemory.hpp b/sources/Memory/IMemory.hpp index 1851130..694d932 100644 --- a/sources/Memory/IMemory.hpp +++ b/sources/Memory/IMemory.hpp @@ -13,8 +13,8 @@ namespace ComSquare { class IMemory { private: - uint32_t _start; - uint32_t _end; + uint32_t _start = 0; + uint32_t _end = 0; public: virtual uint8_t read(uint32_t addr) = 0; virtual void write(uint32_t addr, uint8_t data) = 0;