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

Skip to content

Commit 1aca78d

Browse files
committed
merge 3.3
2 parents dfa8228 + ef87f8c commit 1aca78d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Objects/listobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2043,7 +2043,7 @@ listsort(PyListObject *self, PyObject *args, PyObject *kwds)
20432043
if (keys != NULL) {
20442044
for (i = 0; i < saved_ob_size; i++)
20452045
Py_DECREF(keys[i]);
2046-
if (keys != &ms.temparray[saved_ob_size+1])
2046+
if (saved_ob_size >= MERGESTATE_TEMP_SIZE/2)
20472047
PyMem_FREE(keys);
20482048
}
20492049

Objects/longobject.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ Py_ssize_t quick_int_allocs, quick_neg_int_allocs;
3737
static PyObject *
3838
get_small_int(sdigit ival)
3939
{
40+
PyObject *v;
4041
assert(-NSMALLNEGINTS <= ival && ival < NSMALLPOSINTS);
41-
PyObject *v = (PyObject *)&small_ints[ival + NSMALLNEGINTS];
42+
v = (PyObject *)&small_ints[ival + NSMALLNEGINTS];
4243
Py_INCREF(v);
4344
#ifdef COUNT_ALLOCS
4445
if (ival >= 0)

0 commit comments

Comments
 (0)