nandi/rustnimpublic Fork 0
8354895601e0a0fa3e1962b9ef728d00050ffb97
Commits
Clone
git clone https://git.rickub.com/nandi/rustnim.git
git clone ssh://git@rickub.com/nandi/rustnim.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

902-reject-float-to-int-cast.rs · 6 lines · 205 BRust Blame HistoryRaw
Add the differential test runner, and a lowering to measure with it 8ac32af nandithebull 10h ago1//@ reject: Rust saturates, Nim rounds
2// Rust saturates float->int casts, Nim rounds and range-checks. Different
3// operations, so no mapping is emitted.
4fn main() {
5 println!("{}", 1e10f64 as i32);
6}