mirror of
https://github.com/golang/go
synced 2024-11-25 08:57:58 -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;
|
n->right = r;
|
||||||
t = r->type;
|
t = r->type;
|
||||||
if(!isint[t->etype] || issigned[t->etype]) {
|
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;
|
goto error;
|
||||||
}
|
}
|
||||||
t = l->type;
|
t = l->type;
|
||||||
|
Loading…
Reference in New Issue
Block a user