diff Objects/listobject.c @ 9884:14dcbb34b9dd legacy-trunk

Jim Ahlstrom patch: cutoff should be a long for machines with 16-bit ints. (In theory, other variables should be widened to long as well, but this won't ever be needed, since the len of a list is still an int.)
author Guido van Rossum <guido@python.org>
date Thu, 14 Jan 1999 19:01:53 +0000
parents 003b42c9f24d
children 891d089aba41
line wrap: on
line diff
--- a/Objects/listobject.c	Thu Jan 14 19:00:14 1999 +0000
+++ b/Objects/listobject.c	Thu Jan 14 19:01:53 1999 +0000
@@ -877,7 +877,7 @@
    is undesirable, so cutoff values are canned in the "cutoff" table
    below:  cutoff[i] is the smallest N such that k == CUTOFFBASE + i. */
 #define CUTOFFBASE 4
-static int cutoff[] = {
+static long cutoff[] = {
 	43,        /* smallest N such that k == 4 */
 	106,       /* etc */
 	250,