diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-02-05 06:26:10 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-02-05 06:26:10 (GMT) |
commit | 4a0a9556fced91be576abd2658fd32a4d2687563 (patch) | |
tree | aa3952884393263e12ebebea65271b0e619ce61c | |
parent | 225e7c0defec9ee88f5ce7a318d659cfbc7028ea (diff) | |
download | cpython-4a0a9556fced91be576abd2658fd32a4d2687563.zip cpython-4a0a9556fced91be576abd2658fd32a4d2687563.tar.gz cpython-4a0a9556fced91be576abd2658fd32a4d2687563.tar.bz2 |
fix debug assertion
-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 a9ea2c2..63fd5ae 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -2565,7 +2565,7 @@ _PyType_Lookup(PyTypeObject *type, PyObject *name) method_cache[h].version = type->tp_version_tag; method_cache[h].value = res; /* borrowed */ Py_INCREF(name); - assert(((PyASCIIObject *)(name))->hash != -1); + assert(((PyStringObject *)(name))->hash != -1); #if MCACHE_STATS if (method_cache[h].name != Py_None && method_cache[h].name != name) method_cache_collisions++; |