mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Update unsafe.go
This commit is contained in:
parent
7d8d4d27d3
commit
4182d4a289
1 changed files with 1 additions and 1 deletions
|
|
@ -26,5 +26,5 @@ import (
|
|||
|
||||
// byteArrayBytes returns a slice of the byte array v.
|
||||
func byteArrayBytes(v reflect.Value, length int) []byte {
|
||||
return unsafe.Slice((*byte)((unsafe.Pointer)(v.UnsafeAddr())), length)
|
||||
return unsafe.Slice((*byte)(unsafe.Pointer(v.UnsafeAddr())), length)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue