From 969387a79ab5888c39c5ac8bd298205e700819f8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 21 Oct 2022 01:54:31 -0400 Subject: k_session_request: Turn C-style array into std::array Makes for stronger typing and allows tooling bounds checks provided by the standard library for debugging purposes. --- src/core/hle/kernel/k_session_request.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/hle/kernel/k_session_request.h b/src/core/hle/kernel/k_session_request.h index 5a43933cf..42b1207f0 100644 --- a/src/core/hle/kernel/k_session_request.h +++ b/src/core/hle/kernel/k_session_request.h @@ -3,6 +3,8 @@ #pragma once +#include + #include "core/hle/kernel/k_auto_object.h" #include "core/hle/kernel/k_event.h" #include "core/hle/kernel/k_memory_block.h" @@ -148,7 +150,7 @@ public: private: KernelCore& kernel; - Mapping m_static_mappings[NumStaticMappings]; + std::array m_static_mappings; Mapping* m_mappings{}; u8 m_num_send{}; u8 m_num_recv{}; -- cgit v1.2.3