diff options
author | obscuren <geffobscura@gmail.com> | 2015-05-26 17:13:32 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-05-26 19:48:10 +0800 |
commit | f6f81169feb4afae1194b1c5c4dd6049a419210c (patch) | |
tree | dd7d23a50e63dddb932ee9bb0b11f9f90fe42311 /core/vm | |
parent | 03faccfb08f7c6eca0a43e37354eec4866668032 (diff) | |
download | dexon-f6f81169feb4afae1194b1c5c4dd6049a419210c.tar dexon-f6f81169feb4afae1194b1c5c4dd6049a419210c.tar.gz dexon-f6f81169feb4afae1194b1c5c4dd6049a419210c.tar.bz2 dexon-f6f81169feb4afae1194b1c5c4dd6049a419210c.tar.lz dexon-f6f81169feb4afae1194b1c5c4dd6049a419210c.tar.xz dexon-f6f81169feb4afae1194b1c5c4dd6049a419210c.tar.zst dexon-f6f81169feb4afae1194b1c5c4dd6049a419210c.zip |
core/vm: Fork fix. Removal of appending 0 bytes in memset
Diffstat (limited to 'core/vm')
-rw-r--r-- | core/vm/memory.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/core/vm/memory.go b/core/vm/memory.go index d20aa9591..ea2ee80fb 100644 --- a/core/vm/memory.go +++ b/core/vm/memory.go @@ -1,10 +1,6 @@ package vm -import ( - "fmt" - - "github.com/ethereum/go-ethereum/common" -) +import "fmt" type Memory struct { store []byte @@ -24,7 +20,7 @@ func (m *Memory) Set(offset, size uint64, value []byte) { // It's possible the offset is greater than 0 and size equals 0. This is because // the calcMemSize (common.go) could potentially return 0 when size is zero (NO-OP) if size > 0 { - copy(m.store[offset:offset+size], common.RightPadBytes(value, int(size))) + copy(m.store[offset:offset+size], value) } } |