mirror of
https://github.com/golang/go
synced 2024-11-21 15:24:45 -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:
parent
3d0a85785a
commit
67941bf644
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user