Skip to content

Overflow might happen easier on Windows #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bvssvni opened this issue Mar 5, 2015 · 2 comments
Closed

Overflow might happen easier on Windows #76

bvssvni opened this issue Mar 5, 2015 · 2 comments

Comments

@bvssvni
Copy link

bvssvni commented Mar 5, 2015

See tomaka/clock_ticks#4

clock_ticks is based on this library, so I suspect the same issue applies here.

https://github.com/rust-lang/time/blob/a9b589595eaffd9f5b6a4b53bc89a32246204ac2/src/lib.rs#L251

return (ticks as u64 * 1000000000) / (imp::frequency() as u64);
@huonw
Copy link

huonw commented Mar 5, 2015

@alexcrichton
Copy link

Applied the same fix as in the main repo, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants