diff options
-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 63fd5aeb64..a5f3997ee9 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(((PyStringObject *)(name))->hash != -1); + assert(((PyStringObject *)(name))->ob_shash != -1); #if MCACHE_STATS if (method_cache[h].name != Py_None && method_cache[h].name != name) method_cache_collisions++; |