]> Cypherpunks repositories - gostls13.git/commitdiff
fix error that gcc thinks is a warning
authorRuss Cox <rsc@golang.org>
Wed, 29 Jul 2009 00:02:05 +0000 (17:02 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 29 Jul 2009 00:02:05 +0000 (17:02 -0700)
R=ken
OCL=32264
CL=32386

src/cmd/5g/cgen.c
src/cmd/8g/cgen.c

index 327bb1aebc4cd37963a1718372fdb32cef668258..6e9d9aa8b6abceee17fa9b5da83c8cc0ca5de302 100644 (file)
@@ -618,7 +618,7 @@ bgen(Node *n, int true, Prog *to)
        nr = n->right;
 
        if(n->type == T) {
-               convlit(n, types[TBOOL]);
+               convlit(&n, types[TBOOL]);
                if(n->type == T)
                        goto ret;
        }
index e37eb52952c4a52ea1396204850f501a7930aa10..2306387493b9ff655465d137870abe4e84ab393b 100644 (file)
@@ -683,7 +683,7 @@ bgen(Node *n, int true, Prog *to)
        nr = n->right;
 
        if(n->type == T) {
-               convlit(n, types[TBOOL]);
+               convlit(&n, types[TBOOL]);
                if(n->type == T)
                        return;
        }