[Python-checkins] r53053 - python/trunk/Modules/bz2module.c

andrew.kuchling python-checkins at python.org
Mon Dec 18 20:22:25 CET 2006


Author: andrew.kuchling
Date: Mon Dec 18 20:22:24 2006
New Revision: 53053

Modified:
   python/trunk/Modules/bz2module.c
Log:
[Patch #1615868 by Lars Gustaebel] Use Py_off_t to fix BZ2File.seek() for offsets > 2Gb

Modified: python/trunk/Modules/bz2module.c
==============================================================================
--- python/trunk/Modules/bz2module.c	(original)
+++ python/trunk/Modules/bz2module.c	Mon Dec 18 20:22:24 2006
@@ -996,7 +996,7 @@
 	char small_buffer[SMALLCHUNK];
 	char *buffer = small_buffer;
 	size_t buffersize = SMALLCHUNK;
-	int bytesread = 0;
+	Py_off_t bytesread = 0;
 	size_t readsize;
 	int chunksize;
 	int bzerror;


More information about the Python-checkins mailing list