]> Cypherpunks repositories - gostls13.git/commitdiff
cc: fix vlong condition
authorRuss Cox <rsc@golang.org>
Tue, 18 Jan 2011 21:28:21 +0000 (16:28 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 18 Jan 2011 21:28:21 +0000 (16:28 -0500)
Fixes #1032.

R=ken2
CC=golang-dev
https://golang.org/cl/4025043

src/cmd/cc/pgen.c

index a9d7f1ef4ccd3122c0bc8a1072577b7e79ea095d..5d17cafc92fbb49988891768908235bf74ca12cf 100644 (file)
@@ -586,8 +586,7 @@ bcomplex(Node *n, Node *c)
                *b->right = *nodconst(0);
                b->right->type = n->type;
                b->type = types[TLONG];
-               cgen(b, Z);
-               return 0;
+               n = b;
        }
        bool64(n);
        boolgen(n, 1, Z);