1
0
mirror of https://github.com/golang/go synced 2024-11-18 10:54:40 -07:00

runtime: remove redundant type cast

(*T)(unsafe.Pointer(&t)) === &t
for t of type T

Change-Id: I43c1aa436747dfa0bf4cb0d615da1647633f9536
Reviewed-on: https://go-review.googlesource.com/15656
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Nodir Turakulov 2015-10-09 11:15:53 -07:00 committed by Brad Fitzpatrick
parent 6fed2a68f7
commit 3be4d59820

View File

@ -284,7 +284,7 @@ func cfuncname(f *_func) *byte {
if datap == nil {
return nil
}
return (*byte)(unsafe.Pointer(&datap.pclntable[f.nameoff]))
return &datap.pclntable[f.nameoff]
}
func funcname(f *_func) string {