mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-28 22:12:40 +02:00
err: fix narrowing conversion
This commit is contained in:
parent
49c1ace890
commit
2c3ccef17e
@ -82,7 +82,7 @@ namespace ams::err {
|
||||
}
|
||||
|
||||
/* 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)) {
|
||||
return InvalidContextDescriptor;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user