diff options
author | Russ Cox <rsc@golang.org> | 2010-10-18 11:28:57 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-10-18 11:28:57 -0400 |
commit | 67941bf644f0604a96ea351afd099d737119478b (patch) | |
tree | 0fa4ecd815c3acb2d7aaf170a43ef8bcee7457a8 | |
parent | 3d0a85785a7680663fa40d55e8c92c008dffcbfc (diff) | |
download | go-67941bf644f0604a96ea351afd099d737119478b.tar.gz go-67941bf644f0604a96ea351afd099d737119478b.zip |
gc: say that shift must be unsigned integer
R=ken2
CC=golang-dev
https://golang.org/cl/2519044
-rw-r--r-- | src/cmd/gc/typecheck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gc/typecheck.c b/src/cmd/gc/typecheck.c index 9466c39c14..89cd1d6591 100644 --- a/src/cmd/gc/typecheck.c +++ b/src/cmd/gc/typecheck.c @@ -425,7 +425,7 @@ reswitch: n->right = r; t = r->type; if(!isint[t->etype] || issigned[t->etype]) { - yyerror("invalid operation: %#N (shift count type %T)", n, r->type); + yyerror("invalid operation: %#N (shift count type %T, must be unsigned integer)", n, r->type); goto error; } t = l->type; |