subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject svn commit: r925402 - /subversion/trunk/subversion/libsvn_wc/workqueue.c
Date Fri, 19 Mar 2010 20:05:52 GMT
Author: gstein
Date: Fri Mar 19 20:05:52 2010
New Revision: 925402

URL: http://svn.apache.org/viewvc?rev=925402&view=rev
Log:
Follow precedent from other functions

* subversion/libsvn_wc/workqueue.c:
  (run_delete): toss the boolean casts and do a compare against 0

Modified:
    subversion/trunk/subversion/libsvn_wc/workqueue.c

Modified: subversion/trunk/subversion/libsvn_wc/workqueue.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/workqueue.c?rev=925402&r1=925401&r2=925402&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/workqueue.c (original)
+++ subversion/trunk/subversion/libsvn_wc/workqueue.c Fri Mar 19 20:05:52 2010
@@ -1831,11 +1831,11 @@ run_delete(svn_wc__db_t *db,
   arg = arg->next;
   kind = (int) svn_skel__parse_int(arg, scratch_pool);
   arg = arg->next;
-  was_added = (svn_boolean_t) svn_skel__parse_int(arg, scratch_pool);
+  was_added = svn_skel__parse_int(arg, scratch_pool) != 0;
   arg = arg->next;
-  was_copied = (svn_boolean_t) svn_skel__parse_int(arg, scratch_pool);
+  was_copied = svn_skel__parse_int(arg, scratch_pool) != 0;
   arg = arg->next;
-  was_replaced = (svn_boolean_t) svn_skel__parse_int(arg, scratch_pool);
+  was_replaced = svn_skel__parse_int(arg, scratch_pool) != 0;
 
   if (was_replaced && was_copied)
     {



Mime
View raw message