]> Cypherpunks repositories - gostls13.git/commit
doc/go1.3.html: change uintptr to integer in unsafe.Pointer section
authorRuss Cox <rsc@golang.org>
Thu, 22 May 2014 15:45:03 +0000 (11:45 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 22 May 2014 15:45:03 +0000 (11:45 -0400)
commit8d8dab34eb3bedfbb0e384deaeb03a9395db89a8
tree6f918196f793513980781c8455b7ad3863d5109f
parent5eb585f211385d28b36f3df66b5bd7bde72a8e43
doc/go1.3.html: change uintptr to integer in unsafe.Pointer section

The key property here is what the bit pattern represents,
not what its type is. Storing 5 into a pointer is the problem.
Storing a uintptr that holds pointer bits back into a pointer
is not as much of a problem, and not what we are claiming
the runtime will detect.

Longer discussion at
https://groups.google.com/d/msg/golang-nuts/dIGISmr9hw0/0jO4ce85Eh0J

LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/98370045
doc/go1.3.html