From: Andrew M. Kuchling Date: Mon, 18 Dec 2006 19:22:24 +0000 (+0000) Subject: [Patch #1615868 by Lars Gustaebel] Use Py_off_t to fix BZ2File.seek() for offsets... X-Git-Tag: v2.6a1~2363 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44b054b84adc2deef45bf3fd2e17532d9a993cd3;p=python [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 27a38279a6..7a7d6cb11f 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;