mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
Merge 5028d55fad into 406a852ec8
This commit is contained in:
commit
fcf34a76ee
1 changed files with 5 additions and 7 deletions
|
|
@ -1093,10 +1093,9 @@ func opPush1(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) {
|
|||
)
|
||||
*pc += 1
|
||||
if *pc < codeLen {
|
||||
scope.Stack.push(integer.SetUint64(uint64(scope.Contract.Code[*pc])))
|
||||
} else {
|
||||
scope.Stack.push(integer.Clear())
|
||||
integer.SetUint64(uint64(scope.Contract.Code[*pc]))
|
||||
}
|
||||
scope.Stack.push(integer)
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
|
@ -1107,12 +1106,11 @@ func opPush2(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) {
|
|||
integer = new(uint256.Int)
|
||||
)
|
||||
if *pc+2 < codeLen {
|
||||
scope.Stack.push(integer.SetBytes2(scope.Contract.Code[*pc+1 : *pc+3]))
|
||||
integer.SetBytes2(scope.Contract.Code[*pc+1 : *pc+3])
|
||||
} else if *pc+1 < codeLen {
|
||||
scope.Stack.push(integer.SetUint64(uint64(scope.Contract.Code[*pc+1]) << 8))
|
||||
} else {
|
||||
scope.Stack.push(integer.Clear())
|
||||
integer.SetUint64(uint64(scope.Contract.Code[*pc+1]) << 8)
|
||||
}
|
||||
scope.Stack.push(integer)
|
||||
*pc += 2
|
||||
return nil, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue