mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Jim Ahlstrom patch: BIGCHUNK is too large for 16-bit int.
This commit is contained in:
parent
3d37f43293
commit
3c25904a98
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue