Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3aa23fd

Browse files
committed
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.)
1 parent 3c25904 commit 3aa23fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/listobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ struct SamplesortStackNode {
877877
is undesirable, so cutoff values are canned in the "cutoff" table
878878
below: cutoff[i] is the smallest N such that k == CUTOFFBASE + i. */
879879
#define CUTOFFBASE 4
880-
static int cutoff[] = {
880+
static long cutoff[] = {
881881
43, /* smallest N such that k == 4 */
882882
106, /* etc */
883883
250,

0 commit comments

Comments
 (0)