mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
Update util.go
This commit is contained in:
parent
2e5cd21edf
commit
d6768c4fd2
1 changed files with 2 additions and 7 deletions
|
|
@ -53,13 +53,8 @@ func memoryCopy(m []byte, offset, size int64) (cpy []byte) {
|
|||
return nil
|
||||
}
|
||||
|
||||
if len(m) > int(offset) {
|
||||
cpy = make([]byte, size)
|
||||
copy(cpy, m[offset:offset+size])
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue