mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
core/vm: optimize opCallDataLoad using uint256.Int.SetBytes32
This commit is contained in:
parent
0ec63272bf
commit
2bf33638ae
1 changed files with 1 additions and 1 deletions
|
|
@ -275,7 +275,7 @@ func opCallDataLoad(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) {
|
||||||
x := scope.Stack.peek()
|
x := scope.Stack.peek()
|
||||||
if offset, overflow := x.Uint64WithOverflow(); !overflow {
|
if offset, overflow := x.Uint64WithOverflow(); !overflow {
|
||||||
data := getData(scope.Contract.Input, offset, 32)
|
data := getData(scope.Contract.Input, offset, 32)
|
||||||
x.SetBytes(data)
|
x.SetBytes32(data)
|
||||||
} else {
|
} else {
|
||||||
x.Clear()
|
x.Clear()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue