This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR56466


On Thu, Feb 28, 2013 at 02:32:02PM +0900, Miles Bader wrote:
> Marek Polacek <polacek@redhat.com> writes:
> > +  bool changed = false;
> > +	  changed |= true;
> > +	  changed |= true;
> > +	  changed |= true;
> > +	  changed |= true;
> > +    if (changed)
> 
> Why do you use "|=" ...?  Isn't it equivalent to just "=" (which is
> more clear) for a boolean?

Ah, yeah, it's a remnant; I had "changed = false;" there as well.
Will adjust, thanks,

	Marek


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]