Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid undefined behaviour around f64/u64 casts (pantsbuild#10374)
Rust 1.45 will define float-to-int casts in a way which breaks the current code. Instead, avoid round-tripping f64::INFINITY -> f64::NEGATIVE_INFINITY -> u64 and just filter out f64::INFINITY earlier.
- Loading branch information