Commit f664d0e9 authored by Russ Cox's avatar Russ Cox

explain selectsend problem

R=ken
OCL=31865
CL=31867
parent f687fb7e
......@@ -606,7 +606,10 @@ reswitch:
ll = ascompatte(n->op, getinarg(t), n->list, 0, init);
n->list = reorder1(ll);
if(isselect(n)) {
// clear output bool - special prob with selectsend
// special prob with selectsend and selectrecv:
// if chan is nil, they don't know big the channel
// element is and therefore don't know how to find
// the output bool, so we clear it before the call.
Node *b;
b = nodbool(0);
lr = ascompatte(n->op, getoutarg(t), list1(b), 0, init);
......
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