]> Cypherpunks repositories - gostls13.git/commitdiff
sinit.c: recursion in sinit
authorKen Thompson <ken@golang.org>
Thu, 17 Mar 2011 23:47:00 +0000 (16:47 -0700)
committerKen Thompson <ken@golang.org>
Thu, 17 Mar 2011 23:47:00 +0000 (16:47 -0700)
fixes #1617

R=rsc
CC=golang-dev
https://golang.org/cl/4277059

src/cmd/gc/range.c

index e1093a91cba05a2c6b6349cc7f6c8048bc1acc99..dfb2b8efd68430748bbda182565d21c4ad150e5e 100644 (file)
@@ -203,7 +203,7 @@ walkrange(Node *n)
                hb = nod(OXXX, N, N);
                tempname(hb, types[TBOOL]);
 
-               n->ntest = hb;
+               n->ntest = nod(ONE, hb, nodbool(0));
                a = nod(OAS2RECV, N, N);
                a->typecheck = 1;
                a->list = list(list1(hv1), hb);