[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r31941 - branches/issue-2843-dev/subversion/libsvn_wc

From: Lorenz <lorenznl_at_yahoo.com>
Date: Wed, 02 Jul 2008 08:42:20 +0000

>>> + invalid = is_this_dir ^ (entry->depth != svn_depth_exclude);
>>
>> I'm pretty sure as a style issue we don't use bitwise operations in
>> boolean operations here. If you could rewrite that in normal !, && and
>> || that would be clearer.
>The logic here is indeed XOR. What if I change this to the following?
> invalid = (is_this_dir ^ (entry->depth != svn_depth_exclude)) == 1;

just use != as the boolean equivalent

        invalid = is_this_dir != (entry->depth != svn_depth_exclude);

-- 
Lorenz
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-07-02 10:42:50 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.