]> Cypherpunks repositories - gostls13.git/commit
gc: avoid meaningless constant overflow error for inverted slice range
authorIan Lance Taylor <iant@golang.org>
Wed, 5 Dec 2012 23:46:45 +0000 (15:46 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 5 Dec 2012 23:46:45 +0000 (15:46 -0800)
commit08918ba43851d28e860fdaeb79aed0738639a394
tree26047ccff85f875087c38963a169d7c92df14bc8
parent54e8d504e835127e9fcb71d4b5a9acd6f78f4482
gc: avoid meaningless constant overflow error for inverted slice range

Used to say:

issue4251.go:12: inverted slice range
issue4251.go:12: constant -1 overflows uint64
issue4251.go:16: inverted slice range
issue4251.go:16: constant -1 overflows uint64
issue4251.go:20: inverted slice range
issue4251.go:20: constant -1 overflows uint64

With this patch, only gives the "inverted slice range" errors.

R=golang-dev, daniel.morsing
CC=golang-dev
https://golang.org/cl/6871058
src/cmd/gc/typecheck.c
src/cmd/gc/walk.c
test/fixedbugs/issue4251.go [new file with mode: 0644]