From 2910faf9637a99db66c9ff05be0d84159c40bad9 Mon Sep 17 00:00:00 2001
From: Thomas Harte <thomas.harte@gmail.com>
Date: Fri, 15 Jan 2021 22:33:14 -0500
Subject: [PATCH] Adds missing #include.

---
 InstructionSets/M50740/Decoder.cpp | 6 ++++++
 InstructionSets/M50740/Decoder.hpp | 1 +
 InstructionSets/x86/Decoder.hpp    | 1 +
 3 files changed, 8 insertions(+)

diff --git a/InstructionSets/M50740/Decoder.cpp b/InstructionSets/M50740/Decoder.cpp
index 2e526eb62..03be2f5e4 100644
--- a/InstructionSets/M50740/Decoder.cpp
+++ b/InstructionSets/M50740/Decoder.cpp
@@ -235,6 +235,12 @@ std::pair<int, InstructionSet::M50740::Instruction> Decoder::decode(const uint8_
 
 #undef Map
 		}
+
+		// TODO: can I build these into the AddressingMode constants, to avoid the switch?
+		switch(instr_.addressing_mode) {
+			default: operand_size_ = 0; break;
+		}
+
 	}
 
 	return std::make_pair(0, Instruction());
diff --git a/InstructionSets/M50740/Decoder.hpp b/InstructionSets/M50740/Decoder.hpp
index d7a08e3a4..68bdd3396 100644
--- a/InstructionSets/M50740/Decoder.hpp
+++ b/InstructionSets/M50740/Decoder.hpp
@@ -11,6 +11,7 @@
 
 #include "Instruction.hpp"
 
+#include <cstddef>
 #include <utility>
 
 namespace InstructionSet {
diff --git a/InstructionSets/x86/Decoder.hpp b/InstructionSets/x86/Decoder.hpp
index f09dd7fc0..084cac843 100644
--- a/InstructionSets/x86/Decoder.hpp
+++ b/InstructionSets/x86/Decoder.hpp
@@ -11,6 +11,7 @@
 
 #include "Instruction.hpp"
 
+#include <cstddef>
 #include <utility>
 
 namespace InstructionSet {