Skip to content

Commit 049e0ef

Browse files
committed
Add for loop optimization
1 parent c24df9c commit 049e0ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/Sha3.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ library Sha3 {
1414
*/
1515
function hexAddress(address addr) internal pure returns (bytes32 ret) {
1616
assembly {
17-
for { let i := 40 } gt(i, 0) {} {
17+
for { let i := 40 } i {} {
1818
i := sub(i, 1)
1919
mstore8(i, byte(and(addr, 0xf), ALPHABET))
2020
addr := shr(4, addr)

0 commit comments

Comments
 (0)