diff options
author | Guido van Rossum <guido@python.org> | 1999-01-14 19:00:14 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-01-14 19:00:14 (GMT) |
commit | 3c25904a98f347f56ab6c108c451e5ad681830f2 (patch) | |
tree | 027d4c73385c776fb33db90a1351b548847a544d /Objects/fileobject.c | |
parent | 3d37f432938d1fa36e9de1559e692ed78a551e4a (diff) | |
download | cpython-3c25904a98f347f56ab6c108c451e5ad681830f2.zip cpython-3c25904a98f347f56ab6c108c451e5ad681830f2.tar.gz cpython-3c25904a98f347f56ab6c108c451e5ad681830f2.tar.bz2 |
Jim Ahlstrom patch: BIGCHUNK is too large for 16-bit int.
Diffstat (limited to 'Objects/fileobject.c')
-rw-r--r-- | Objects/fileobject.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index ed15587..6d57aea 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -452,7 +452,11 @@ file_isatty(f, args) #define SMALLCHUNK BUFSIZ #endif -#define BIGCHUNK (512*1024) +#if SIZEOF_INT < 4 +#define BIGCHUNK (512 * 32) +#else +#define BIGCHUNK (512 * 1024) +#endif static size_t new_buffersize(f, currentsize) |