Commit 13228a6f authored by Guido van Rossum's avatar Guido van Rossum

Ah, the joy of writing test cases...

long_subtype_new(): fix a typo (type->ob_size instead of
tmp->ob_size).
parent f71b5fec
......@@ -2095,7 +2095,7 @@ long_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
if (new == NULL)
return NULL;
assert(PyLong_Check(new));
new->ob_size = type->ob_size;
new->ob_size = tmp->ob_size;
for (i = 0; i < n; i++)
new->ob_digit[i] = tmp->ob_digit[i];
Py_DECREF(tmp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment