Commit 2d73b7f7 authored by Ken Thompson's avatar Ken Thompson

bug slicing array - cap is huge

R=rsc
OCL=33936
CL=33936
parent 3cf330f0
......@@ -796,7 +796,7 @@ walkexpr(Node **np, NodeList **init)
argtype(fn, n->left->type); // any-1
argtype(fn, t->type); // any-2
n = mkcall1(fn, t, init,
nod(OADDR, n->left, N), nodintconst(t->bound),
nod(OADDR, n->left, N), nodintconst(n->left->type->bound),
conv(n->right->left, types[TINT]),
conv(n->right->right, types[TINT]),
nodintconst(t->type->width));
......
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