[Mesa-dev] Omission? mesa-10.5.6

Ilia Mirkin imirkin at alum.mit.edu
Mon May 25 12:01:57 PDT 2015


On Mon, May 25, 2015 at 2:53 PM, Matt Turner <mattst88 at gmail.com> wrote:
> On Mon, May 25, 2015 at 11:50 AM, Roland Scheidegger <sroland at vmware.com> wrote:
>> I can't see what's wrong with the code.
>> I thought not using parantheses there is quite common, is that some new
>> warning from some super duper new compiler version?
>
> It's that the compiler thinks that (!x == y) is a typo for !(x == y).
> I have to say, I think the first does look strange.

I dunno... the second looks way stranger. x != y seems way more
natural. While there's no substantially better way to write !x == y.


More information about the mesa-dev mailing list