Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REVIEW ME Avoid overflow from 64-bit
A * B / C
in `std::sys::window…
…s::time`. I should check if this method for "safer" multiplication by a ratio is already provided somewhere in `core::num`. (And if not, add it.) Also, I should look into whether I have any better options here, and whether I should just be calling the WrappingOps or OverflowingOps anyway. But this should serve for the short term.
- Loading branch information
b6d2ccb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heh, funny, the version of the code I made on its own ran, but then when I transcribed it into this file I obviously took a bad shortcut. (This commit does not build because of a type mismatch;
fn frequency
returns ani64
but we need au64
here.)