subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phi...@apache.org
Subject svn commit: r1190404 - /subversion/trunk/subversion/libsvn_fs_fs/key-gen.c
Date Fri, 28 Oct 2011 15:41:44 GMT
Author: philip
Date: Fri Oct 28 15:41:44 2011
New Revision: 1190404

URL: http://svn.apache.org/viewvc?rev=1190404&view=rev
Log:
Fix key addition in FSFS repositories with formats less than
SVN_FS_FS__MIN_NO_GLOBAL_IDS_FORMAT.

* subversion/libsvn_fs_fs/key-gen.c
  (svn_fs_fs__add_keys): Use signed type.

Modified:
    subversion/trunk/subversion/libsvn_fs_fs/key-gen.c

Modified: subversion/trunk/subversion/libsvn_fs_fs/key-gen.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/key-gen.c?rev=1190404&r1=1190403&r2=1190404&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/key-gen.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/key-gen.c Fri Oct 28 15:41:44 2011
@@ -41,8 +41,8 @@
 void
 svn_fs_fs__add_keys(const char *key1, const char *key2, char *result)
 {
-  apr_size_t i1 = strlen(key1) - 1;
-  apr_size_t i2 = strlen(key2) - 1;
+  apr_ssize_t i1 = strlen(key1) - 1;
+  apr_ssize_t i2 = strlen(key2) - 1;
   int i3 = 0;
   int val;
   int carry = 0;



Mime
View raw message