Skip to content

Commit

Permalink
Add parentheses around expression
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Jul 30, 2024
1 parent 9a954fd commit 485220b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noir_stdlib/src/uint128.nr
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ impl U128 {
}

fn decode_ascii(ascii: u8) -> Field {
if ascii < 58 {
(if ascii < 58 {
ascii - 48
} else {
let ascii = ascii + 32 * (U128::uconstrained_check_is_upper_ascii(ascii) as u8);
assert(ascii >= 97); // enforce >= 'a'
assert(ascii <= 102); // enforce <= 'f'
ascii - 87
} as Field
}) as Field
}

// TODO: Replace with a faster version.
Expand Down

0 comments on commit 485220b

Please sign in to comment.