subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1704824 - /subversion/trunk/subversion/libsvn_diff/binary_diff.c
Date Wed, 23 Sep 2015 11:52:24 GMT
Author: rhuijben
Date: Wed Sep 23 11:52:22 2015
New Revision: 1704824

URL: http://svn.apache.org/viewvc?rev=1704824&view=rev
Log:
* subversion/libsvn_diff/binary_diff.c
  (svn_diff__base85_decode_line): Use slightly different type to avoid
    comparing signed with unsigned after extending types.

Modified:
    subversion/trunk/subversion/libsvn_diff/binary_diff.c

Modified: subversion/trunk/subversion/libsvn_diff/binary_diff.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_diff/binary_diff.c?rev=1704824&r1=1704823&r2=1704824&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_diff/binary_diff.c (original)
+++ subversion/trunk/subversion/libsvn_diff/binary_diff.c Wed Sep 23 11:52:22 2015
@@ -115,7 +115,7 @@ svn_diff__base85_decode_line(char *outpu
                              apr_pool_t *scratch_pool)
 {
   {
-    apr_size_t expected_data = (output_len + 3) / 4 * 5;
+    apr_ssize_t expected_data = (output_len + 3) / 4 * 5;
 
     if (base85_len != expected_data)
       return svn_error_create(SVN_ERR_DIFF_UNEXPECTED_DATA, NULL,



Mime
View raw message