Skip to content

Fix cast in performance API example #2634

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

Merged

Conversation

andy-k
Copy link
Contributor

@andy-k andy-k commented Jul 26, 2021

Rust 1.45 defines (f64 as u32) as a saturating cast.
The millis was incorrectly always 295 (u32::MAX % 1000).

Affected example

Rust 1.45 defines (f64 as u32) as a saturating cast.
The millis was incorrectly always 295 (u32::MAX % 1000).
@alexcrichton alexcrichton merged commit 3b3d95a into rustwasm:master Jul 26, 2021
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

Successfully merging this pull request may close these issues.

2 participants