Skip to content

Commit

Permalink
fix(frontend): Error on unsupported integer annotation (noir-lang#2778)
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm authored and Sakapoi committed Oct 19, 2023
1 parent 7e217e1 commit b1e9e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/noirc_frontend/src/lexer/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ impl IntType {
Err(_) => return Ok(None),
};

let max_bits = FieldElement::max_num_bits();
let max_bits = FieldElement::max_num_bits() / 2;

if str_as_u32 > max_bits {
return Err(LexerErrorKind::TooManyBits { span, max: max_bits, got: str_as_u32 });
Expand Down

0 comments on commit b1e9e45

Please sign in to comment.