aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/binary
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2016-03-31 09:29:39 -0700
committerJosh Bleecher Snyder <josharian@gmail.com>2016-03-31 18:41:30 +0000
commite775b8df7a073824e445b64742f3bc4dc4fa6f3d (patch)
tree7b0a6db6b78742b48abdaf48fba50833ad6cd94c /src/encoding/binary
parent4b95575bd4baa683bf1c5b75bd42adf8ab2871af (diff)
downloadgo-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')
0 files changed, 0 insertions, 0 deletions