]> Cypherpunks repositories - gostls13.git/commitdiff
switch on false error
authorKen Thompson <ken@golang.org>
Wed, 18 Mar 2009 02:10:32 +0000 (19:10 -0700)
committerKen Thompson <ken@golang.org>
Wed, 18 Mar 2009 02:10:32 +0000 (19:10 -0700)
R=r
OCL=26434
CL=26434

src/cmd/gc/swt.c

index e4bd2716656b41e2f9a94f6986fd8d46b661acb7..82639a53e902ff915e877939889e21dfe1467aae 100644 (file)
@@ -394,7 +394,7 @@ walkswitch(Node *sw)
        arg = Snorm;
        if(isconst(sw->ntest, CTBOOL)) {
                arg = Strue;
-               if(sw->ntest->val.u.xval == 0)
+               if(sw->ntest->val.u.bval == 0)
                        arg = Sfalse;
        }