From 9333ce189f7d74109987c78f59d04fb74f78eda4 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Mon, 18 Dec 2006 19:26:13 +0000 Subject: [Patch #1615868 by Lars Gustaebel] Use Py_off_t to fix BZ2File.seek() for offsets > 2Gb --- Modules/bz2module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v0.12