From 67941bf644f0604a96ea351afd099d737119478b Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 18 Oct 2010 11:28:57 -0400 Subject: [PATCH] gc: say that shift must be unsigned integer R=ken2 CC=golang-dev https://golang.org/cl/2519044 --- src/cmd/gc/typecheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/gc/typecheck.c b/src/cmd/gc/typecheck.c index 9466c39c144..89cd1d65917 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;