From: Ken Thompson Date: Wed, 10 Sep 2008 23:45:41 +0000 (-0700) Subject: bug in type of first argument to slice X-Git-Tag: weekly.2009-11-06~3246 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a0e57201c7fde56cf8362e9b164b4dd5483dde7f;p=gostls13.git bug in type of first argument to slice R=r OCL=15113 CL=15113 --- diff --git a/src/cmd/gc/walk.c b/src/cmd/gc/walk.c index 8c26ac932f..c317fbdaea 100644 --- a/src/cmd/gc/walk.c +++ b/src/cmd/gc/walk.c @@ -2364,7 +2364,7 @@ arrayop(Node *n, int top) r = list(a, r); a = nod(OCONV, n->right->left, N); // lb - a->type = types[TINT32]; + a->type = types[TUINT32]; r = list(a, r); a = n->left; // old @@ -2391,12 +2391,12 @@ arrayop(Node *n, int top) r = list(a, r); a = nod(OCONV, n->right->left, N); // lb - a->type = types[TINT32]; + a->type = types[TUINT32]; r = list(a, r); a = nodintconst(t->bound); // nel a = nod(OCONV, a, N); - a->type = types[TINT32]; + a->type = types[TUINT32]; r = list(a, r); a = n->left; // old