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

[Bug] Signed int pow edge cases #121

Closed
collinc97 opened this issue Jul 30, 2020 · 1 comment
Closed

[Bug] Signed int pow edge cases #121

collinc97 opened this issue Jul 30, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@collinc97
Copy link
Collaborator

🐛 Describe the Bug

The pow exponentiation function for signed integers fails on negative bases, large powers, and some large bases.

Steps to Reproduce

// src/main.leo
function main() {
    let a = 11i8 ** 2i8;
}

Stack trace & error message

Result::unwrap()` on an `Err` value: Overflow

Expected Behavior

The function should compile and run without error.

@collinc97 collinc97 added the bug Something isn't working label Jul 30, 2020
@collinc97 collinc97 changed the title [Bug] [Bug] Signed int division and pow edge cases Aug 3, 2020
@collinc97 collinc97 changed the title [Bug] Signed int division and pow edge cases [Bug] Signed int pow edge cases Aug 4, 2020
@collinc97
Copy link
Collaborator Author

Closing this since signed and unsigned integers have been updated since #231

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant