Skip to content

Commit

Permalink
Allow casting u1 in comptime
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Jan 10, 2025
1 parent 63cfd12 commit 9b42fd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/noirc_frontend/src/hir/comptime/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1424,6 +1424,7 @@ impl<'local, 'interner> Interpreter<'local, 'interner> {

let (mut lhs, lhs_is_negative) = match evaluated_lhs {
Value::Field(value) => (value, false),
Value::U1(value) => ((value as u128).into(), false),
Value::U8(value) => ((value as u128).into(), false),
Value::U16(value) => ((value as u128).into(), false),
Value::U32(value) => ((value as u128).into(), false),
Expand Down

0 comments on commit 9b42fd8

Please sign in to comment.