[Python-checkins] r53054 - python/branches/release25-maint/Modules/bz2module.c

andrew.kuchling python-checkins at python.org
Mon Dec 18 20:26:14 CET 2006


Author: andrew.kuchling
Date: Mon Dec 18 20:26:13 2006
New Revision: 53054

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

Modified: python/branches/release25-maint/Modules/bz2module.c
==============================================================================
--- python/branches/release25-maint/Modules/bz2module.c	(original)
+++ python/branches/release25-maint/Modules/bz2module.c	Mon Dec 18 20:26:13 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