diff options
| author | Josh Bleecher Snyder <josharian@gmail.com> | 2016-03-31 09:29:39 -0700 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2016-03-31 18:41:30 +0000 |
| commit | e775b8df7a073824e445b64742f3bc4dc4fa6f3d (patch) | |
| tree | 7b0a6db6b78742b48abdaf48fba50833ad6cd94c /src/encoding/binary/binary.go | |
| parent | 4b95575bd4baa683bf1c5b75bd42adf8ab2871af (diff) | |
| download | go-e775b8df7a073824e445b64742f3bc4dc4fa6f3d.tar.xz | |
cmd/compile: add sliceBound
Add a constant for the magic -1 for slice bounds.
Use it.
Enforce more aggressively that bounds must be
slice, ddd, or non-negative.
Remove ad hoc check in plive.go.
Check bounds before constructing an array type
when typechecking.
All changes are manual.
Passes toolstash -cmp.
Change-Id: I9fd9cc789d7d4b4eea3b30b24037a254d3788add
Reviewed-on: https://go-review.googlesource.com/21348
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/encoding/binary/binary.go')
0 files changed, 0 insertions, 0 deletions
