Skip to content

Commit

Permalink
Update contracts/utils/Arrays.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx authored Feb 12, 2024
1 parent 12e4931 commit cf79d79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/utils/Arrays.sol
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ library Arrays {
*/
function _swap(uint256 ptr1, uint256 ptr2) private pure {
assembly {
let val1 := mload(ptr1)
let val2 := mload(ptr2)
mstore(ptr1, val2)
mstore(ptr2, val1)
let value1 := mload(ptr1)
let value2 := mload(ptr2)
mstore(ptr1, value2)
mstore(ptr2, value1)
}
}

Expand Down

0 comments on commit cf79d79

Please sign in to comment.