commit | 44b054b84adc2deef45bf3fd2e17532d9a993cd3 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Mon Dec 18 19:22:24 2006 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Mon Dec 18 19:22:24 2006 +0000 |
tree | a6596c80c3ff1f3cb4ccfa7508ed5b09cc91c915 | |
parent | 9059843a60e94bea3a42a20907fd7495942f89a5 [diff] |
[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;