Skip to content

Commit c63f89c

Browse files
committed
Ignore the overflow for constants
Force using the constants even on x86 where they do not fit into isize (c_int)
1 parent 91b29ab commit c63f89c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sys/reboot.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use libc::c_int;
33
use void::Void;
44
use std::mem::drop;
55

6+
#[allow(overflowing_literals)]
67
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
78
pub enum RebootMode {
89
Halt = 0xcdef0123,

0 commit comments

Comments
 (0)