Rust
fn main() { let x: i16 = -32768; println!("{}", x); println!("{}", x.abs()); } とすると arithmetic operation overflowed で落ちる。 doc を見ると、"::MIN will be returned if the number is ::MIN" と書いてあるのだが…。 https://github.com/rust-…
fn main() { let x: i16 = -32768; println!("{}", x); println!("{}", x.abs()); } とすると arithmetic operation overflowed で落ちる。 doc を見ると、"::MIN will be returned if the number is ::MIN" と書いてあるのだが…。 https://github.com/rust-…