We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This was reported by a user named Peter in Discord.
The following program will panic:
fn main(x: Field) -> pub i127 { x as i127 }
with
The application panicked (crashed). Message: assertion failed: bits + bit_size < FieldElement::max_num_bits() Location: compiler/noirc_evaluator/src/ssa/acir_gen/acir_ir/generated_acir.rs:602
Whereas doing:
fn main(x: Field) -> pub i127 { (x as u126) as i127 }
Will pass.
.
None
No response
No
The text was updated successfully, but these errors were encountered:
guipublic
Successfully merging a pull request may close this issue.
Aim
The following program will panic:
with
Whereas doing:
Will pass.
Expected Behavior
.
Bug
.
To Reproduce
Installation Method
None
Nargo Version
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: