]> granicus.if.org Git - python/commitdiff
[Patch #1615868 by Lars Gustaebel] Use Py_off_t to fix BZ2File.seek() for offsets...
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 18 Dec 2006 19:26:13 +0000 (19:26 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 18 Dec 2006 19:26:13 +0000 (19:26 +0000)
Modules/bz2module.c

index 27a38279a66e2fd89b31ba251bd723c1b53b4784..7a7d6cb11f0176d5b4c86e24109b1f850e4cf565 100644 (file)
@@ -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;