forsyth: fix newvlongcode in bcomplex. this only currently applies to qc Reference: /n/atom/patch/applied/ccbcomplexfix Date: Sun Aug 16 01:23:41 CES 2015 Signed-off-by: quanstro@quanstro.net --- /sys/src/cmd/cc/pgen.c Sun Aug 16 01:23:32 2015 +++ /sys/src/cmd/cc/pgen.c Sun Aug 16 01:23:34 2015 @@ -573,8 +573,8 @@ } if(c != Z && n->op == OCONST && deadheads(c)) return 1; - /* this is not quite right yet, so ignore it for now */ - if(0 && newvlongcode && typev[n->type->etype] && machcap(Z)) { + if(newvlongcode && typev[n->type->etype] && machcap(Z)) { + nod = znode; b = &nod; b->op = ONE; b->left = n; @@ -582,7 +582,8 @@ *b->right = *nodconst(0); b->right->type = n->type; b->type = types[TLONG]; - cgen(b, Z); + xcom(b); + boolgen(b, 1, Z); return 0; } bool64(n);