mirror of
https://github.com/golang/go
synced 2024-10-05 18:21:21 -06:00
[dev.power64] reflect: now we find one big endian machine
LGTM=rsc R=rsc, iant CC=golang-codereviews https://golang.org/cl/124350043
This commit is contained in:
parent
4f557008e8
commit
b697c120f6
@ -11,7 +11,7 @@ import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
const bigEndian = false // can be smarter if we find a big-endian machine
|
||||
const bigEndian = runtime.GOARCH == "power64" // can be smarter if we find more big-endian machines
|
||||
const ptrSize = unsafe.Sizeof((*byte)(nil))
|
||||
const cannotSet = "cannot set value obtained from unexported struct field"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user