We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02d57d1 commit 686e4f9Copy full SHA for 686e4f9
contracts/utils/Arrays.sol
@@ -104,14 +104,12 @@ library Arrays {
104
}
105
106
function unsafeMemoryAccess(uint256[] memory arr, uint256 pos) internal pure returns (uint256 res) {
107
- /// @solidity memory-safe-assembly
108
assembly {
109
res := mload(add(add(arr, 0x20), mul(pos, 0x20)))
110
111
112
113
function unsafeMemoryAccess(address[] memory arr, uint256 pos) internal pure returns (address res) {
114
115
116
117
0 commit comments