diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2006-12-18 19:26:13 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2006-12-18 19:26:13 (GMT) |
commit | 9333ce189f7d74109987c78f59d04fb74f78eda4 (patch) | |
tree | f06c0288a2be8c4ece90a63c422a4116223ec8e5 | |
parent | aa4135a45e4f01fa35c1b65825731a20bdb60d61 (diff) | |
download | cpython-9333ce189f7d74109987c78f59d04fb74f78eda4.zip cpython-9333ce189f7d74109987c78f59d04fb74f78eda4.tar.gz cpython-9333ce189f7d74109987c78f59d04fb74f78eda4.tar.bz2 |
[Patch #1615868 by Lars Gustaebel] Use Py_off_t to fix BZ2File.seek() for offsets > 2Gb
-rw-r--r-- | Modules/bz2module.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ BZ2File_seek(BZ2FileObject *self, PyObject *args) 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; |