Skip to content

Commit 070ddc5

Browse files
committed
uefi: Fix Status ERROR_BIT
Set the highest bit for a usize instead of hardcoding bit 63. Fixes compilation on i686-unknown-uefi. Signed-off-by: Tim Crawford <tcrawford@system76.com>
1 parent 3e17141 commit 070ddc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/uefi/src/status.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use core::ops::{ControlFlow, FromResidual, Try};
22

3-
pub const ERROR_BIT: usize = 1 << 63;
3+
pub const ERROR_BIT: usize = 1 << (usize::BITS - 1);
44

55
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
66
#[repr(usize)]

0 commit comments

Comments
 (0)