Skip to content
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

Wrong handling of overflows in stdlib.pow-int #356

Closed
Acaccia opened this issue Mar 4, 2024 · 0 comments · Fixed by #366
Closed

Wrong handling of overflows in stdlib.pow-int #356

Acaccia opened this issue Mar 4, 2024 · 0 comments · Fixed by #366
Assignees
Labels
bug Something isn't working wasm

Comments

@Acaccia
Copy link
Collaborator

Acaccia commented Mar 4, 2024

The compiled version of this snippet returns 1 when it should overflow.

#[test]
fn test_pow_int_overflow() {
    crosscheck("(pow 2 18446744073709551616)", Err(()));
}
@Acaccia Acaccia added bug Something isn't working wasm labels Mar 4, 2024
@smcclellan smcclellan added this to the WASM Phase 1 milestone Mar 12, 2024
@Acaccia Acaccia self-assigned this Mar 18, 2024
Acaccia added a commit that referenced this issue Mar 18, 2024
@Acaccia Acaccia mentioned this issue Mar 18, 2024
github-merge-queue bot pushed a commit that referenced this issue Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wasm
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants