1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:54:40 -07:00

gc: say that shift must be unsigned integer

R=ken2
CC=golang-dev
https://golang.org/cl/2519044
This commit is contained in:
Russ Cox 2010-10-18 11:28:57 -04:00
parent 3d0a85785a
commit 67941bf644

View File

@ -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;