Commit 67941bf6 authored by Russ Cox's avatar Russ Cox

gc: say that shift must be unsigned integer

R=ken2
CC=golang-dev
https://golang.org/cl/2519044
parent 3d0a8578
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment