summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2006-12-18 19:26:13 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2006-12-18 19:26:13 (GMT)
commit9333ce189f7d74109987c78f59d04fb74f78eda4 (patch)
treef06c0288a2be8c4ece90a63c422a4116223ec8e5
parentaa4135a45e4f01fa35c1b65825731a20bdb60d61 (diff)
downloadcpython-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.c2
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;