diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/vm/instructions.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/vm/instructions.go b/core/vm/instructions.go index bcaf18e8a..f5164fcdd 100644 --- a/core/vm/instructions.go +++ b/core/vm/instructions.go @@ -258,8 +258,8 @@ func opXor(pc *uint64, evm *EVM, contract *Contract, memory *Memory, stack *Stac func opByte(pc *uint64, evm *EVM, contract *Contract, memory *Memory, stack *Stack) ([]byte, error) { th, val := stack.pop(), stack.peek() if th.Cmp(common.Big32) < 0 { - b := math.BigEndian32ByteAt(val, int(th.Int64())) - val.SetInt64(int64(b)) + b := math.Byte(val, 32, int(th.Int64())) + val.SetUint64(uint64(b)) } else { val.SetUint64(0) } |