mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
gc: unsafe.Alignof, unsafe.Offsetof, unsafe.Sizeof now return uintptr
R=ken2 CC=golang-dev https://golang.org/cl/4640045
This commit is contained in:
parent
b96ff8458c
commit
cf9f380499
24 changed files with 66 additions and 42 deletions
|
|
@ -11,7 +11,7 @@ import (
|
|||
"unsafe"
|
||||
)
|
||||
|
||||
const ptrSize = uintptr(unsafe.Sizeof((*byte)(nil)))
|
||||
const ptrSize = unsafe.Sizeof((*byte)(nil))
|
||||
const cannotSet = "cannot set value obtained from unexported struct field"
|
||||
|
||||
// TODO: This will have to go away when
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue