From d6f86caf30ba50a195571ffaa0bce48052204e6e Mon Sep 17 00:00:00 2001 From: NarcolepticK Date: Sun, 1 Jul 2018 12:38:40 -0400 Subject: [PATCH] service/cecd: Addressed comment about using PushEnum instead of Push --- src/core/hle/service/cecd/cecd.cpp | 2 +- src/core/hle/service/cecd/cecd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/hle/service/cecd/cecd.cpp b/src/core/hle/service/cecd/cecd.cpp index d661bd118..c7bb8c1aa 100644 --- a/src/core/hle/service/cecd/cecd.cpp +++ b/src/core/hle/service/cecd/cecd.cpp @@ -18,7 +18,7 @@ void Module::Interface::GetCecStateAbbreviated(Kernel::HLERequestContext& ctx) { IPC::RequestBuilder rb = rp.MakeBuilder(2, 0); rb.Push(RESULT_SUCCESS); - rb.Push(static_cast(CecStateAbbreviated::CEC_STATE_ABBREV_IDLE)); + rb.PushEnum(CecStateAbbreviated::CEC_STATE_ABBREV_IDLE); LOG_WARNING(Service_CECD, "(STUBBED) called"); } diff --git a/src/core/hle/service/cecd/cecd.h b/src/core/hle/service/cecd/cecd.h index e2557a3db..9d4f659c1 100644 --- a/src/core/hle/service/cecd/cecd.h +++ b/src/core/hle/service/cecd/cecd.h @@ -10,7 +10,7 @@ namespace Service { namespace CECD { -enum class CecStateAbbreviated { +enum class CecStateAbbreviated : u32 { CEC_STATE_ABBREV_IDLE = 1, ///< Corresponds to CEC_STATE_IDLE CEC_STATE_ABBREV_NOT_LOCAL = 2, ///< Corresponds to CEC_STATEs *FINISH*, *POST, and OVER_BOSS CEC_STATE_ABBREV_SCANNING = 3, ///< Corresponds to CEC_STATE_SCANNING