Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix lint
  • Loading branch information
Amxx committed Jan 19, 2024
commit 1f96c34c8ec0bfc2556ecd1180d800d84de27a56
7 changes: 1 addition & 6 deletions contracts/utils/math/Math.sol
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,7 @@ library Math {
int256 t2 = 1;
while (r1 != 0) {
uint256 q = r2 / r1;
(t1, t2, r2, r1) = (
t2,
t1 - t2 * int256(q),
r1,
r2 - r1 * q
);
(t1, t2, r2, r1) = (t2, t1 - t2 * int256(q), r1, r2 - r1 * q);
}
if (r2 != 1) return 0;
return t1 < 0 ? (p - uint256(-t1)) : uint256(t1);
Expand Down