diff options
| author | Austin Clements <austin@google.com> | 2018-03-25 12:20:57 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2018-03-26 19:08:24 +0000 |
| commit | 2d8181e7b5ffe685847a6bb922170c4bbe1c97f6 (patch) | |
| tree | cdb067e22d78824d5dc2d5b2616f210865ab5c08 /src/testing/example.go | |
| parent | a29e25b82c9d39c448df6dfcea01bfeb111da1bc (diff) | |
| download | go-2d8181e7b5ffe685847a6bb922170c4bbe1c97f6.tar.xz | |
cmd/compile: clarify unsigned interpretation of AuxInt
The way Value.AuxInt represents unsigned numbers is currently
documented in genericOps.go, which is not the most obvious place for
it. Move that documentation to Value.AuxInt. Furthermore, to make it
harder to use incorrectly, introduce a Value.AuxUnsigned accessor that
returns the zero-extended value of Value.AuxInt.
Change-Id: I85030c3c68761404058a430e0b1c7464591b2f42
Reviewed-on: https://go-review.googlesource.com/102597
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/testing/example.go')
0 files changed, 0 insertions, 0 deletions
