From: Guido van Rossum Date: Thu, 14 Jan 1999 19:00:14 +0000 (+0000) Subject: Jim Ahlstrom patch: BIGCHUNK is too large for 16-bit int. X-Git-Tag: v1.5.2b2~345 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c25904a98f347f56ab6c108c451e5ad681830f2;p=thirdparty%2FPython%2Fcpython.git Jim Ahlstrom patch: BIGCHUNK is too large for 16-bit int. --- diff --git a/Objects/fileobject.c b/Objects/fileobject.c index ed15587ef65c..6d57aeacc3da 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)