]> granicus.if.org Git - python/commitdiff
Jim Ahlstrom patch: cutoff should be a long for machines with 16-bit
authorGuido van Rossum <guido@python.org>
Thu, 14 Jan 1999 19:01:53 +0000 (19:01 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 14 Jan 1999 19:01:53 +0000 (19:01 +0000)
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.)

Objects/listobject.c

index df2108c9ba91e2797d434d240275cb428f262f7d..51d3d07fe355142f59ec20f89994adfcb642d809 100644 (file)
@@ -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,