Commit a0e57201 authored by Ken Thompson's avatar Ken Thompson

bug in type of first argument to slice

R=r
OCL=15113
CL=15113
parent c2723c23
......@@ -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
......
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