Skip to content

Commit

Permalink
Merge pull request #2 from neauoire/patch-2
Browse files Browse the repository at this point in the history
Mute compiler warnings for operation order
  • Loading branch information
jameshi16 authored Sep 6, 2023
2 parents 3136603 + 774d663 commit 2c0e8b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sha1.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ SHA1_WORD sha1_K(uint8_t t) {
}

SHA1_WORD sha1_Sn(SHA1_WORD X, uint8_t n) {
return (X << n) | (X >> 32 - n);
return (X << n) | (X >> (32 - n));
}

// return copy of array that is padded
Expand Down

0 comments on commit 2c0e8b1

Please sign in to comment.