From d2f48d5e36cb2ba4e8cc014238457bd75df81797 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 3 Dec 2020 12:53:20 -0800 Subject: [PATCH] err: fix narrowing conversion --- .../include/stratosphere/err/err_error_context.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libstratosphere/include/stratosphere/err/err_error_context.hpp b/libraries/libstratosphere/include/stratosphere/err/err_error_context.hpp index 2ad719c27..d35baf8ee 100644 --- a/libraries/libstratosphere/include/stratosphere/err/err_error_context.hpp +++ b/libraries/libstratosphere/include/stratosphere/err/err_error_context.hpp @@ -82,7 +82,7 @@ namespace ams::err { } /* Check the descriptor value. */ - const ContextDescriptor descriptor{reserved & ~0x200}; + const ContextDescriptor descriptor{static_cast(reserved & ~0x200)}; if (!(impl::ContextDescriptorMin <= descriptor && descriptor <= impl::ContextDescriptorMax)) { return InvalidContextDescriptor; }