From abdeb2f080385d89f465fb332bef032feb373c12 Mon Sep 17 00:00:00 2001
From: AnonymusRaccoon
Date: Fri, 24 Jan 2020 10:44:19 +0100
Subject: [PATCH] Chaning the CXX Version
---
CMakeLists.txt | 2 +-
sources/Memory/IMemory.hpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
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;