Skip to content

Commit

Permalink
fix(frontend): Error on unsupported integer annotation (#2778)
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm authored Sep 22, 2023
1 parent c6116c0 commit 90c3d8b
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 @@ -302,7 +302,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 90c3d8b

Please sign in to comment.