summaryrefslogtreecommitdiffstats
path: root/Python/marshal.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-05-14 19:55:47 (GMT)
committerGitHub <noreply@github.com>2020-05-14 19:55:47 (GMT)
commita482dc500b6ec4889f6a126ba08cbad6c11e37bc (patch)
treec12cf1f1598899627c9fa0aed9fa317bceebe0dc /Python/marshal.c
parentf2c3b6823bc4777d4a14eb0c3615b719521f763a (diff)
downloadcpython-a482dc500b6ec4889f6a126ba08cbad6c11e37bc.zip
cpython-a482dc500b6ec4889f6a126ba08cbad6c11e37bc.tar.gz
cpython-a482dc500b6ec4889f6a126ba08cbad6c11e37bc.tar.bz2
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
Diffstat (limited to 'Python/marshal.c')
-rw-r--r--Python/marshal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index b096ff8..a0f6b98 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");