From 78ce439b9b80a0533292e42c4a72d331a5b80b46 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 12 Jan 2023 23:08:01 -0500 Subject: [PATCH] Add missing header; correct type. --- Machines/MSX/MSX.cpp | 2 +- Machines/MSX/MemorySlotHandler.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Machines/MSX/MSX.cpp b/Machines/MSX/MSX.cpp index a9a49d2fd..ca02aa4d2 100644 --- a/Machines/MSX/MSX.cpp +++ b/Machines/MSX/MSX.cpp @@ -400,7 +400,7 @@ class ConcreteMachine: // secondary slot communication. final_slot_ = &memory_slots_[primary >> 6]; - for(std::size_t c = 0; c < 8; c += 2) { + for(int c = 0; c < 8; c += 2) { const MemorySlot &slot = memory_slots_[primary & 3]; primary >>= 2; diff --git a/Machines/MSX/MemorySlotHandler.cpp b/Machines/MSX/MemorySlotHandler.cpp index 4ab1985a4..4d6365be0 100644 --- a/Machines/MSX/MemorySlotHandler.cpp +++ b/Machines/MSX/MemorySlotHandler.cpp @@ -8,6 +8,8 @@ #include "MemorySlotHandler.hpp" +#include + using namespace MSX; MemorySlot::MemorySlot() {