commit | 9333ce189f7d74109987c78f59d04fb74f78eda4 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Mon Dec 18 19:26:13 2006 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Mon Dec 18 19:26:13 2006 +0000 |
tree | f06c0288a2be8c4ece90a63c422a4116223ec8e5 | |
parent | aa4135a45e4f01fa35c1b65825731a20bdb60d61 [diff] [blame] |
[Patch #1615868 by Lars Gustaebel] Use Py_off_t to fix BZ2File.seek() for offsets > 2Gb
diff --git a/Modules/bz2module.c b/Modules/bz2module.c index 27a3827..7a7d6cb 100644 --- a/Modules/bz2module.c +++ b/Modules/bz2module.c
@@ -996,7 +996,7 @@ char small_buffer[SMALLCHUNK]; char *buffer = small_buffer; size_t buffersize = SMALLCHUNK; - int bytesread = 0; + Py_off_t bytesread = 0; size_t readsize; int chunksize; int bzerror;