[Python-checkins] r70666 - python/branches/py3k/Modules/_fileio.c
antoine.pitrou
python-checkins at python.org
Sun Mar 29 03:09:52 CEST 2009
Author: antoine.pitrou
Date: Sun Mar 29 03:09:51 2009
New Revision: 70666
Log:
Restore a conditional I removed by mistake.
Modified:
python/branches/py3k/Modules/_fileio.c
Modified: python/branches/py3k/Modules/_fileio.c
==============================================================================
--- python/branches/py3k/Modules/_fileio.c (original)
+++ python/branches/py3k/Modules/_fileio.c Sun Mar 29 03:09:51 2009
@@ -506,7 +506,7 @@
actually be streaming pseudo-files. In this case, we
apply the more aggressive algorithm below.
*/
- if (end >= SMALLCHUNK && pos >= 0) {
+ if (end >= SMALLCHUNK && end >= pos && pos >= 0) {
/* Add 1 so if the file were to grow we'd notice. */
return currentsize + end - pos + 1;
}
More information about the Python-checkins
mailing list