From b59b04dd86514cec9e7acd6b2c65e49afaaa3b2a Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 6 Feb 2016 22:36:06 -0800 Subject: [PATCH] fix hash member name (closes #22847) --- Objects/typeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; -- 2.50.1