We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
size_of::<usize>() * 8
1 parent 048896a commit 333886eCopy full SHA for 333886e
uefi-raw/src/status.rs
@@ -98,7 +98,7 @@ pub enum Status: usize => {
98
99
impl Status {
100
/// Bit indicating that an UEFI status code is an error.
101
- pub const ERROR_BIT: usize = 1 << (core::mem::size_of::<usize>() * 8 - 1);
+ pub const ERROR_BIT: usize = 1 << (usize::BITS - 1);
102
103
/// Returns true if status code indicates success.
104
#[inline]
0 commit comments