Browse Source

chunker - fix 4GB files on 32-bit systems

From code inspection - effect not actually tested.
Alan Jenkins 10 years ago
parent
commit
ce3e67cb96
1 changed files with 2 additions and 1 deletions
  1. 2 1
      borg/_chunker.c

+ 2 - 1
borg/_chunker.c

@@ -83,7 +83,8 @@ typedef struct {
     PyObject *fd;
     PyObject *fd;
     int fh;
     int fh;
     int done, eof;
     int done, eof;
-    size_t remaining, bytes_read, bytes_yielded, position, last;
+    size_t remaining, position, last;
+    off_t bytes_read, bytes_yielded;
 } Chunker;
 } Chunker;
 
 
 static Chunker *
 static Chunker *