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