]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: fix array index out of bounds error message
authorRick Arnold <rickarnoldjr@gmail.com>
Wed, 19 Feb 2014 19:29:36 +0000 (11:29 -0800)
committerRob Pike <r@golang.org>
Wed, 19 Feb 2014 19:29:36 +0000 (11:29 -0800)
commit8eec4ebd7d6f81ec432710a87902746e560b7a37
tree3aa5a85f6e2ef5fe27ab8c459de791d8852c8ddf
parentd4d77052b4d615d72a485fece53879c7c66f5a2a
cmd/gc: fix array index out of bounds error message

The error message was previously off by one in all cases.

Fixes #7150.

LGTM=r
R=golang-codereviews, r
CC=golang-codereviews
https://golang.org/cl/65850043
src/cmd/gc/typecheck.c
test/fixedbugs/issue7150.go [new file with mode: 0644]