From a0e57201c7fde56cf8362e9b164b4dd5483dde7f Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Wed, 10 Sep 2008 16:45:41 -0700 Subject: [PATCH] bug in type of first argument to slice R=r OCL=15113 CL=15113 --- src/cmd/gc/walk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.48.1