Skip to content

Commit

Permalink
Ignore the overflow for constants
Browse files Browse the repository at this point in the history
Force using the constants even on x86 where they do not fit into isize (c_int)
  • Loading branch information
bugaevc committed Jul 11, 2016
1 parent 0ffcfe8 commit 4aa96c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sys/reboot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use libc::c_int;
use void::Void;
use std::mem::drop;

#[allow(overflowing_literals)]
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub enum RebootMode {
Halt = 0xcdef0123,
Expand Down

0 comments on commit 4aa96c0

Please sign in to comment.