From 2c3ccef17e9b267a5d9d232f1aba689f2c591b95 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 --- libstratosphere/include/stratosphere/err/err_error_context.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstratosphere/include/stratosphere/err/err_error_context.hpp b/libstratosphere/include/stratosphere/err/err_error_context.hpp index 2ad719c2..d35baf8e 100644 --- a/libstratosphere/include/stratosphere/err/err_error_context.hpp +++ b/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; }