mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Ah, the joy of writing test cases...
long_subtype_new(): fix a typo (type->ob_size instead of tmp->ob_size).
This commit is contained in:
parent
f71b5fec43
commit
13228a6f09
1 changed files with 1 additions and 1 deletions
|
@ -2095,7 +2095,7 @@ long_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||||
if (new == NULL)
|
if (new == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
assert(PyLong_Check(new));
|
assert(PyLong_Check(new));
|
||||||
new->ob_size = type->ob_size;
|
new->ob_size = tmp->ob_size;
|
||||||
for (i = 0; i < n; i++)
|
for (i = 0; i < n; i++)
|
||||||
new->ob_digit[i] = tmp->ob_digit[i];
|
new->ob_digit[i] = tmp->ob_digit[i];
|
||||||
Py_DECREF(tmp);
|
Py_DECREF(tmp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue