Commits

Anonymous committed 7195ec2

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

  • Participants
  • Parent commits 3589c0e
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Objects/fileobject.c

 #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)