From 20a7fa158872749a82affae92900a4d58b27255b Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 8 Apr 2021 16:52:30 -0700 Subject: [PATCH] tipc: hard-enforce boolean constraints in command processing generation --- .../stratosphere/tipc/impl/tipc_autogen_interface_macros.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libstratosphere/include/stratosphere/tipc/impl/tipc_autogen_interface_macros.hpp b/libraries/libstratosphere/include/stratosphere/tipc/impl/tipc_autogen_interface_macros.hpp index ba6008782..1247ee30d 100644 --- a/libraries/libstratosphere/include/stratosphere/tipc/impl/tipc_autogen_interface_macros.hpp +++ b/libraries/libstratosphere/include/stratosphere/tipc/impl/tipc_autogen_interface_macros.hpp @@ -73,7 +73,7 @@ namespace ams::tipc::impl { concept Is##CLASSNAME = CMD_MACRO(CLASSNAME, AMS_TIPC_IMPL_CHECK_CONCEPT_HELPER) true; #define AMS_TIPC_IMPL_PROCESS_METHOD_REQUEST(CLASSNAME, CMD_ID, RETURN, NAME, ARGS, ARGNAMES, VERSION_MIN, VERSION_MAX) \ - if (constexpr u16 TipcCommandId = CMD_ID + 0x10; tag == TipcCommandId) { \ + else if (constexpr u16 TipcCommandId = CMD_ID + 0x10; tag == TipcCommandId) { \ return this->ProcessMethodById(impl, message_buffer, fw_ver); \ }