Skip to content

Commit

Permalink
Merge pull request #91 from Amxx/fix/sqrt
Browse files Browse the repository at this point in the history
fix: inconsistency in the sqrt function
  • Loading branch information
PaulRBerg authored Jul 3, 2022
2 parents f3a1a9f + a874e1c commit 5d72349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/PRBMath.sol
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ library PRBMath {
xAux >>= 4;
result <<= 2;
}
if (xAux >= 0x8) {
if (xAux >= 0x4) {
result <<= 1;
}

Expand Down

0 comments on commit 5d72349

Please sign in to comment.