subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1296594 - /subversion/trunk/subversion/libsvn_delta/xdelta.c
Date Sat, 03 Mar 2012 10:38:56 GMT
Author: stefan2
Date: Sat Mar  3 10:38:56 2012
New Revision: 1296594

URL: http://svn.apache.org/viewvc?rev=1296594&view=rev
Log:
Silence compiler warning "unary minus still results in unsigned result".

* subversion/libsvn_delta/xdelta.c
  (reverse_match_length): use binary instead of unary '-' operator

Found by: rhuijben

Modified:
    subversion/trunk/subversion/libsvn_delta/xdelta.c

Modified: subversion/trunk/subversion/libsvn_delta/xdelta.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_delta/xdelta.c?rev=1296594&r1=1296593&r2=1296594&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_delta/xdelta.c (original)
+++ subversion/trunk/subversion/libsvn_delta/xdelta.c Sat Mar  3 10:38:56 2012
@@ -261,7 +261,7 @@ reverse_match_length(const char *a, cons
 #endif
 
   while (++pos <= max_len)
-    if (a[-pos] != b[-pos])
+    if (a[0-pos] != b[0-pos])
       break;
 
   return pos-1;



Mime
View raw message