Kaydet (Commit) 3c25904a authored tarafından Guido van Rossum's avatar Guido van Rossum

Jim Ahlstrom patch: BIGCHUNK is too large for 16-bit int.

üst 3d37f432
...@@ -452,7 +452,11 @@ file_isatty(f, args) ...@@ -452,7 +452,11 @@ file_isatty(f, args)
#define SMALLCHUNK BUFSIZ #define SMALLCHUNK BUFSIZ
#endif #endif
#define BIGCHUNK (512*1024) #if SIZEOF_INT < 4
#define BIGCHUNK (512 * 32)
#else
#define BIGCHUNK (512 * 1024)
#endif
static size_t static size_t
new_buffersize(f, currentsize) new_buffersize(f, currentsize)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment