summaryrefslogtreecommitdiffstats
path: root/Modules/bz2module.c
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2006-12-18 19:22:24 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2006-12-18 19:22:24 (GMT)
commit44b054b84adc2deef45bf3fd2e17532d9a993cd3 (patch)
treea6596c80c3ff1f3cb4ccfa7508ed5b09cc91c915 /Modules/bz2module.c
parent9059843a60e94bea3a42a20907fd7495942f89a5 (diff)
downloadcpython-44b054b84adc2deef45bf3fd2e17532d9a993cd3.zip
cpython-44b054b84adc2deef45bf3fd2e17532d9a993cd3.tar.gz
cpython-44b054b84adc2deef45bf3fd2e17532d9a993cd3.tar.bz2
[Patch #1615868 by Lars Gustaebel] Use Py_off_t to fix BZ2File.seek() for offsets > 2Gb
Diffstat (limited to 'Modules/bz2module.c')
-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;