summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2008-09-10 16:45:41 -0700
committerKen Thompson <ken@golang.org>2008-09-10 16:45:41 -0700
commite144859d001d903783586e6d4c0566be2f0888a7 (patch)
tree3337a4096df54059855d35b8065b9800f7abd244
parent3f55c9837e7ccc66254fd233d3e3f76006704eb3 (diff)
downloadgolang-e144859d001d903783586e6d4c0566be2f0888a7.tar.gz
bug in type of first argument to slice
R=r OCL=15113 CL=15113
-rw-r--r--src/cmd/gc/walk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/gc/walk.c b/src/cmd/gc/walk.c
index 8c26ac932..c317fbdae 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