subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phi...@apache.org
Subject svn commit: r1230212 - /subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
Date Wed, 11 Jan 2012 20:00:06 GMT
Author: philip
Date: Wed Jan 11 20:00:06 2012
New Revision: 1230212

URL: http://svn.apache.org/viewvc?rev=1230212&view=rev
Log:
Fix for large files on 32-bit systems.

Patch-by: Martin Buck <mb-tmp-fhoirefvba.ncnpur.bet@gromit.dyndns.org> 

* subversion/libsvn_fs_fs/fs_fs.c
  (struct rep_args): Use 64-bit type for length.
  (read_rep_line): Tweak cast.

Modified:
    subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c

Modified: subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c?rev=1230212&r1=1230211&r2=1230212&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c Wed Jan 11 20:00:06 2012
@@ -2318,7 +2318,7 @@ struct rep_args
 
   svn_revnum_t base_revision;
   apr_off_t base_offset;
-  apr_size_t base_length;
+  svn_filesize_t base_length;
 };
 
 /* Read the next line from file FILE and parse it as a text
@@ -2379,7 +2379,7 @@ read_rep_line(struct rep_args **rep_args
   if (! str)
     goto error;
   SVN_ERR(svn_cstring_atoi64(&val, str));
-  rep_args->base_length = (apr_size_t)val;
+  rep_args->base_length = (svn_filesize_t)val;
 
   *rep_args_p = rep_args;
   return SVN_NO_ERROR;



Mime
View raw message