mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-10 06:01:52 +00:00
err: fix narrowing conversion
This commit is contained in:
parent
422e9434d8
commit
d2f48d5e36
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ namespace ams::err {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check the descriptor value. */
|
/* Check the descriptor value. */
|
||||||
const ContextDescriptor descriptor{reserved & ~0x200};
|
const ContextDescriptor descriptor{static_cast<decltype(ContextDescriptor{}.value)>(reserved & ~0x200)};
|
||||||
if (!(impl::ContextDescriptorMin <= descriptor && descriptor <= impl::ContextDescriptorMax)) {
|
if (!(impl::ContextDescriptorMin <= descriptor && descriptor <= impl::ContextDescriptorMax)) {
|
||||||
return InvalidContextDescriptor;
|
return InvalidContextDescriptor;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue