Skip to content

Commit 44b054b

Browse files
committed
[Patch #1615868 by Lars Gustaebel] Use Py_off_t to fix BZ2File.seek() for offsets > 2Gb
1 parent 9059843 commit 44b054b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/bz2module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ BZ2File_seek(BZ2FileObject *self, PyObject *args)
996996
char small_buffer[SMALLCHUNK];
997997
char *buffer = small_buffer;
998998
size_t buffersize = SMALLCHUNK;
999-
int bytesread = 0;
999+
Py_off_t bytesread = 0;
10001000
size_t readsize;
10011001
int chunksize;
10021002
int bzerror;

0 commit comments

Comments
 (0)