1
0
mirror of https://github.com/golang/go synced 2024-11-18 23:05:06 -07:00

bug in type of first argument to slice

R=r
OCL=15113
CL=15113
This commit is contained in:
Ken Thompson 2008-09-10 16:45:41 -07:00
parent c2723c23d6
commit a0e57201c7

View File

@ -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