diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-05-28 21:04:40 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-05-28 21:04:40 (GMT) |
commit | c352620c92d2efcdf4940909d6de81cf9c336e0b (patch) | |
tree | b4e03229c47ac0cc29bb7bbc968247a465dc4a4a /Objects | |
parent | 338502b307798e089d85e58f97f3d28922161c47 (diff) | |
download | cpython-c352620c92d2efcdf4940909d6de81cf9c336e0b.zip cpython-c352620c92d2efcdf4940909d6de81cf9c336e0b.tar.gz cpython-c352620c92d2efcdf4940909d6de81cf9c336e0b.tar.bz2 |
backout 3c9512d8ac0d
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 0a82f3a..19e6596 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -6777,7 +6777,7 @@ update_one_slot(PyTypeObject *type, slotdef *p) sanity checks and constructing a new argument list. Cut all that nonsense short -- this speeds up instance creation tremendously. */ - specific = (void *)((PyTypeObject *)PyCFunction_GET_SELF(descr))->tp_new; + specific = (void *)type->tp_new; /* XXX I'm not 100% sure that there isn't a hole in this reasoning that requires additional sanity checks. I'll buy the first person to |