[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:26:13 +00:00
parent aa4135a45e
commit 9333ce189f
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;