From: Russ Cox Date: Wed, 29 Jul 2009 00:02:05 +0000 (-0700) Subject: fix error that gcc thinks is a warning X-Git-Tag: weekly.2009-11-06~1039 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=189153ed131e4fa106ff945754509a043f8fcb93;p=gostls13.git fix error that gcc thinks is a warning R=ken OCL=32264 CL=32386 --- diff --git a/src/cmd/5g/cgen.c b/src/cmd/5g/cgen.c index 327bb1aebc..6e9d9aa8b6 100644 --- a/src/cmd/5g/cgen.c +++ b/src/cmd/5g/cgen.c @@ -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; } diff --git a/src/cmd/8g/cgen.c b/src/cmd/8g/cgen.c index e37eb52952..2306387493 100644 --- a/src/cmd/8g/cgen.c +++ b/src/cmd/8g/cgen.c @@ -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; }