[Patch #1615868 by Lars Gustaebel] Use Py_off_t to fix BZ2File.seek() for offsets > 2Gb
This commit is contained in:
parent
aa4135a45e
commit
9333ce189f
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue