From: Guido van Rossum Date: Thu, 14 Jan 1999 19:01:53 +0000 (+0000) Subject: Jim Ahlstrom patch: cutoff should be a long for machines with 16-bit X-Git-Tag: v1.5.2b2~344 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3aa23fdd47406de288e8ff32581222de739737eb;p=python 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.) --- diff --git a/Objects/listobject.c b/Objects/listobject.c index df2108c9ba..51d3d07fe3 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -877,7 +877,7 @@ struct SamplesortStackNode { 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,