mirror of https://github.com/python/cpython
[Patch #1615868 by Lars Gustaebel] Use Py_off_t to fix BZ2File.seek() for offsets > 2Gb
This commit is contained in:
parent
9059843a60
commit
44b054b84a
|
@ -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