e8ff3f9b61
Shifting a literal (which is an int when a suffix is not present) generates a warning because the only possible result is 0, and the programmer probably didn't intend to do that. Change the shift to a value less than 32. The test exhibiting the warning wasn't aiming to test integer promotion rules, so I've opted to change the constant.
21 lines
368 B
Rust
21 lines
368 B
Rust
pub const LEN: i32 = 22;
|
|
|
|
pub type NamedLenArray = [i32; LEN];
|
|
pub type ValuedLenArray = [i32; 22];
|
|
|
|
#[repr(u8)]
|
|
pub enum AbsoluteFontWeight {
|
|
Weight(f32),
|
|
Normal,
|
|
Bold,
|
|
}
|
|
|
|
#[no_mangle]
|
|
pub extern "C" fn root(x: NamedLenArray, y: ValuedLenArray, z: AbsoluteFontWeight) { }
|
|
|
|
#[no_mangle]
|
|
pub const X: i64 = 22 << 22;
|
|
|
|
#[no_mangle]
|
|
pub const Y: i64 = X + X;
|