From 1496b3aff6a537a1c5597ec55b8d3b25afded26c Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Tue, 6 Jun 2017 18:38:38 +0200 Subject: common/math, core/vm: Un-expose bigEndianByteAt, use correct terms for endianness --- core/vm/instructions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') 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) } -- cgit v1.2.3