From a482dc500b6ec4889f6a126ba08cbad6c11e37bc Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 14 May 2020 21:55:47 +0200 Subject: bpo-40602: Write unit tests for _Py_hashtable_t (GH-20091) Cleanup also hashtable.c. Rename _Py_hashtable_t members: * Rename entries to nentries * Rename num_buckets to nbuckets --- Python/marshal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/marshal.c') diff --git a/Python/marshal.c b/Python/marshal.c index b096ff89322..a0f6b981260 100644 --- a/Python/marshal.c +++ b/Python/marshal.c @@ -312,7 +312,7 @@ w_ref(PyObject *v, char *flag, WFILE *p) w_long(w, p); return 1; } else { - size_t s = p->hashtable->entries; + size_t s = p->hashtable->nentries; /* we don't support long indices */ if (s >= 0x7fffffff) { PyErr_SetString(PyExc_ValueError, "too many objects"); -- cgit v1.2.3