Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow relative speed of -0.0 (#7740)
# Objective -0.0 should typically be treated exactly the same as 0.0, but this assertion was rejecting it while allowing 0.0. The `Duration` API handles this correctly (on recent Rust versions) and returns a zero `Duration` for both -0.0 and 0.0. ## Solution Check for `ratio >= 0.0`, which is true if `ratio` is `-0.0`. --- ## Changelog Allow relative speed of -0.0 in the `Time::set_relative_speed_fXX` methods.
- Loading branch information