svn commit: r201794 - in head/sys: ddb dev/ep dev/ex netinet6
Edward Tomasz Napierała
trasz at FreeBSD.org
Fri Jan 8 17:08:42 UTC 2010
Wiadomość napisana przez Stefan Farfeleder w dniu 2010-01-08, o godz. 17:12:
> On Fri, Jan 08, 2010 at 03:44:49PM +0000, Edward Tomasz Napierala wrote:
>> Author: trasz
>> Date: Fri Jan 8 15:44:49 2010
>> New Revision: 201794
>> URL: http://svn.freebsd.org/changeset/base/201794
>>
>> Log:
>> Replace several instances of 'if (!a & b)' with 'if (!(a &b))' in order
>> to silence newer GCC versions.
>
> They are not identical, !a & b is parsed as (!a) & b. The code now
> seems more correct however.
Looks like I've got the operator precedence backwards there - I assumed
there was no functional change involved. But yes, the code now looks more
correct - logical 'and' of a constant with the truth value is pointless.
--
If you cut off my head, what would I say? Me and my head, or me and my body?
More information about the svn-src-all
mailing list