]> granicus.if.org Git - python/commitdiff
fix hash member name (closes #22847)
authorBenjamin Peterson <benjamin@python.org>
Sun, 7 Feb 2016 06:36:06 +0000 (22:36 -0800)
committerBenjamin Peterson <benjamin@python.org>
Sun, 7 Feb 2016 06:36:06 +0000 (22:36 -0800)
Objects/typeobject.c

index 63fd5aeb64c02602f5a8399d383d3e4ad705781a..a5f3997ee9ae15f44304c697087aec9664d1ff43 100644 (file)
@@ -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++;