From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoann Padioleau To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Date: Tue, 14 Oct 2014 22:11:35 +0000 Message-ID: Content-Type: multipart/alternative; boundary="_000_AA00716C7B8A43A18B534454016F16B2fbcom_" MIME-Version: 1.0 Subject: [9fans] copy paste bug in cc.y? Topicbox-Message-UUID: 1cc332c0-ead9-11e9-9d60-3106f5b1d025 --_000_AA00716C7B8A43A18B534454016F16B2fbcom_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi, It=92s a copy paste bug here right? https://code.google.com/p/ken-cc/source/browse/src/cmd/cc/cc.y#476 | LSWITCH '(' cexpr ')' stmnt { $$ =3D new(OCONST, Z, Z); $$->vconst =3D 0; $$->type =3D types[TINT]; $3 =3D new(OSUB, $$, $3); $$ =3D new(OCONST, Z, Z); $$->vconst =3D 0; $$->type =3D types[TINT]; $3 =3D new(OSUB, $$, $3); $$ =3D new(OSWITCH, $3, $5); } --_000_AA00716C7B8A43A18B534454016F16B2fbcom_ Content-Type: text/html; charset="Windows-1252" Content-ID: <240BB476EDAD3B45A6D820419C67A221@fb.com> Content-Transfer-Encoding: quoted-printable Hi,

It=92s a copy paste bug here right?
https://code.google.com/p/ken-cc/source/browse/src/cmd/cc/cc.y#476=


|       LSWITCH '(' cexpr ')' stmnt
        {
               = $$ =3D new(OCONST, Z, Z);
               = $$->vconst =3D 0;
               = $$->type =3D types[TINT];
               = $3 =3D new(OSUB, $$, $3);<= span class=3D"pln">

               = $$ =3D new(OCONST, Z, Z);
               = $$->vconst =3D 0;
               = $$->type =3D types[TINT];
               = $3 =3D new(OSUB, $$, $3);<= span class=3D"pln">

               = $$ =3D new(OSWITCH, $3, $5);<= span class=3D"pln">
        }


--_000_AA00716C7B8A43A18B534454016F16B2fbcom_--