Skip to content

Commit

Permalink
Parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
aakoshh committed Oct 24, 2024
1 parent 2a5686e commit da0f98d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noir_stdlib/src/hash/sha256.nr
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ unconstrained fn build_msg_block<let N: u32>(
};

// Figure out the number of items in the int array that we have to pack.
// e.g. if the input is [0,1,2,3, 4,5] then we need to pack it as 2 items: [0123, 4500]
// e.g. if the input is [0,1,2,3,4,5] then we need to pack it as 2 items: [0123, 4500]
let mut int_input = block_input / INT_SIZE;
if block_input % INT_SIZE != 0 {
int_input = int_input + 1;
Expand Down Expand Up @@ -232,7 +232,7 @@ fn verify_msg_block<let N: u32>(
for k in msg_start..=msg_end {
if k % INT_SIZE == 0 {
// If we consumed some input we can compare against the block.
if msg_start < message_size & k > msg_start {
if (msg_start < message_size) & (k > msg_start) {
assert_eq(msg_block[i], msg_item as u32);
i = i + 1;
msg_item = 0;
Expand Down

0 comments on commit da0f98d

Please sign in to comment.