summaryrefslogtreecommitdiffstats
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-08-30 15:54:44 (GMT)
committerGuido van Rossum <guido@python.org>2001-08-30 15:54:44 (GMT)
commit13228a6f099cbf4855fa0dc0ee921f174bc967ff (patch)
treeeb2ed3c2123088b18a8e55f4819c414bf7c13641 /Objects/longobject.c
parentf71b5fec4390bd7b40c7eb7aaefc79125249c5ec (diff)
downloadcpython-13228a6f099cbf4855fa0dc0ee921f174bc967ff.zip
cpython-13228a6f099cbf4855fa0dc0ee921f174bc967ff.tar.gz
cpython-13228a6f099cbf4855fa0dc0ee921f174bc967ff.tar.bz2
Ah, the joy of writing test cases...
long_subtype_new(): fix a typo (type->ob_size instead of tmp->ob_size).
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index ea0685e..25d0377 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -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);