[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Small patch
From: |
Vincent Lefevre |
Subject: |
Re: [Tinycc-devel] Small patch |
Date: |
Thu, 31 Jan 2013 13:18:58 +0100 |
User-agent: |
Mutt/1.5.21-6294-vl-r57845 (2013-01-23) |
On 2013-01-31 10:52:14 +0100, Thomas Preud'homme wrote:
> Le jeudi 31 janvier 2013 02:07:36, Domingo Alvarez Duarte a écrit :
> > switch(op) {
> > case '&':
> > pe->v &= e2.v;
> > break;
> > case '|':
> > pe->v |= e2.v;
> > break;
> > default:
> > case '^': ///////////////////////////////////////what this case
> > after default mean ????????
> > pe->v ^= e2.v;
> > break;
> > }
>
> Looks weird indeed but I am reluctant to change it when I don't know why it
> was done this way in the first place. Since the file was commited in one go,
> I
> can't see if this result from a mistake or if it was intentional. We can
> consider changing this and the other such example right after the release.
Perhaps there was a "default:" by default the author forgot to remove.
And as it is probably just useless (if op can only be '&', '|' or '^'),
no-one noticed it.
--
Vincent Lefèvre <address@hidden> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
- Re: [Tinycc-devel] Small patch, (continued)
- Re: [Tinycc-devel] Small patch, Domingo Alvarez Duarte, 2013/01/30
- Re: [Tinycc-devel] Small patch, Thomas Preud'homme, 2013/01/31
- Re: [Tinycc-devel] Small patch, Stephan Beal, 2013/01/31
- Re: [Tinycc-devel] Small patch, Thomas Preud'homme, 2013/01/31
- Re: [Tinycc-devel] Small patch, Domingo Alvarez Duarte, 2013/01/31
- Re: [Tinycc-devel] Small patch, Domingo Alvarez Duarte, 2013/01/31
- Re: [Tinycc-devel] Small patch, Thomas Preud'homme, 2013/01/31
- Re: [Tinycc-devel] Small patch, Stephan Beal, 2013/01/31
- Re: [Tinycc-devel] Small patch, Thomas Preud'homme, 2013/01/31
- Re: [Tinycc-devel] Small patch, Thomas Preud'homme, 2013/01/31
- Re: [Tinycc-devel] Small patch,
Vincent Lefevre <=
- Re: [Tinycc-devel] Small patch, grischka, 2013/01/31
- Re: [Tinycc-devel] Small patch, Vincent Lefevre, 2013/01/31
- Re: [Tinycc-devel] Small patch, grischka, 2013/01/31
- Re: [Tinycc-devel] Small patch, Vincent Lefevre, 2013/01/31
- Re: [Tinycc-devel] Small patch, Michael Matz, 2013/01/31
- Re: [Tinycc-devel] Small patch, Vincent Lefevre, 2013/01/31
- Re: [Tinycc-devel] Small patch, grischka, 2013/01/31
Re: [Tinycc-devel] Small patch, Thomas Preud'homme, 2013/01/31