[Patch #1615868 by Lars Gustaebel] Use Py_off_t to fix BZ2File.seek() for offsets > 2Gb

This commit is contained in:
Andrew M. Kuchling 2006-12-18 19:22:24 +00:00
parent 9059843a60
commit 44b054b84a
1 changed files with 1 additions and 1 deletions

View File

@ -996,7 +996,7 @@ BZ2File_seek(BZ2FileObject *self, PyObject *args)
char small_buffer[SMALLCHUNK]; char small_buffer[SMALLCHUNK];
char *buffer = small_buffer; char *buffer = small_buffer;
size_t buffersize = SMALLCHUNK; size_t buffersize = SMALLCHUNK;
int bytesread = 0; Py_off_t bytesread = 0;
size_t readsize; size_t readsize;
int chunksize; int chunksize;
int bzerror; int bzerror;