mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
merge 3.3
This commit is contained in:
commit
dfa822811a
@ -37,7 +37,8 @@ Py_ssize_t quick_int_allocs, quick_neg_int_allocs;
|
||||
static PyObject *
|
||||
get_small_int(sdigit ival)
|
||||
{
|
||||
PyObject *v = (PyObject*)(small_ints + ival + NSMALLNEGINTS);
|
||||
assert(-NSMALLNEGINTS <= ival && ival < NSMALLPOSINTS);
|
||||
PyObject *v = (PyObject *)&small_ints[ival + NSMALLNEGINTS];
|
||||
Py_INCREF(v);
|
||||
#ifdef COUNT_ALLOCS
|
||||
if (ival >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user