From: Andrew M. Kuchling Date: Mon, 18 Dec 2006 19:26:13 +0000 (+0000) Subject: [Patch #1615868 by Lars Gustaebel] Use Py_off_t to fix BZ2File.seek() for offsets... X-Git-Tag: v2.5.1c1~215 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9333ce189f7d74109987c78f59d04fb74f78eda4;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;