Skip to content

Commit 931c848

Browse files
committed
Optimized
1 parent f660dc9 commit 931c848

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils/LibBit.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ library LibBit {
209209
mstore(add(o, add(i, i)),
210210
and(0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f, or(shl(4, x), x)))
211211
}
212-
mstore(add(o, add(n, n)), 0) // Zeroize slot after result.
213-
mstore(0x40, add(0x40, add(o, add(n, n)))) // Allocate memory.
212+
mstore(add(o, mload(result)), 0) // Zeroize slot after result.
213+
mstore(0x40, add(0x40, add(o, mload(result)))) // Allocate memory.
214214
}
215215
}
216216

0 commit comments

Comments
 (0)