From: Russ Cox Date: Mon, 18 Oct 2010 15:28:57 +0000 (-0400) Subject: gc: say that shift must be unsigned integer X-Git-Tag: weekly.2010-10-20~37 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=67941bf644f0604a96ea351afd099d737119478b;p=gostls13.git gc: say that shift must be unsigned integer R=ken2 CC=golang-dev https://golang.org/cl/2519044 --- 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;