From f437d7fe66d4b04f088b06ddf7294d87f6f5003e Mon Sep 17 00:00:00 2001 From: AnonymusRaccoon Date: Fri, 14 Feb 2020 11:02:33 +0100 Subject: [PATCH] Solving a small bug --- sources/Ram/Ram.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/Ram/Ram.cpp b/sources/Ram/Ram.cpp index 350d0f9..98a3498 100644 --- a/sources/Ram/Ram.cpp +++ b/sources/Ram/Ram.cpp @@ -12,6 +12,7 @@ namespace ComSquare::Ram : _size(size) { this->_data = new uint8_t[size]; + std::memset(this->_data, 0, size * sizeof(uint8_t)); } Ram::~Ram()