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; }