subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bre...@apache.org
Subject svn commit: r1597871 - /subversion/trunk/subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c
Date Tue, 27 May 2014 20:28:46 GMT
Author: breser
Date: Tue May 27 20:28:45 2014
New Revision: 1597871

URL: http://svn.apache.org/r1597871
Log:
In the perl bindings: Fix a compiler warning about using the result of a
condition without parenthesis.

* subversion/bindings/swig/perl/libsvn-swig_perl/swigutil_pl.c
  (svn_swig_pl_array_to_apr_array_revision_range): Use parens.

Modified:
    subversion/trunk/subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c

Modified: subversion/trunk/subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c?rev=1597871&r1=1597870&r2=1597871&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c (original)
+++ subversion/trunk/subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c Tue May
27 20:28:45 2014
@@ -296,7 +296,7 @@ apr_array_header_t *svn_swig_pl_array_to
     svn_boolean_t croak_on_error = FALSE;
     svn_opt_revision_range_t *range;
 
-    if (range = convert_pl_revision_range(source, &croak_on_error, pool)) {
+    if ((range = convert_pl_revision_range(source, &croak_on_error, pool))) {
         apr_array_header_t *temp = apr_array_make(pool, 1, 
                                                   sizeof(svn_opt_revision_range_t *));
         temp->nelts = 1;



Mime
View raw message