summaryrefslogtreecommitdiff
path: root/Python/marshal.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-23 09:52:13 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-03-23 09:52:13 +0100
commit5dacbd4c42171e447e2f07144faf502774dc921a (patch)
treef344814d89eaee33a235711b760c1584ba4db6eb /Python/marshal.c
parentca79ccd9e69641330d4002acac1bfeeb2dccda32 (diff)
downloadcpython-git-5dacbd4c42171e447e2f07144faf502774dc921a.tar.gz
Cleanup hashtable.h
Issue #26588: * Pass the hash table rather than the key size to hash and compare functions * _Py_HASHTABLE_READ_KEY() and _Py_HASHTABLE_ENTRY_READ_KEY() macros now expect the hash table as the first parameter, rather than the key size * tracemalloc_get_traces_fill(): use _Py_HASHTABLE_ENTRY_READ_DATA() rather than pointer dereference * Remove the _Py_HASHTABLE_ENTRY_WRITE_PKEY() macro * Move "PKEY" and "PDATA" macros inside hashtable.c
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 3be77a82f4..627a8428e5 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -588,7 +588,7 @@ w_decref_entry(_Py_hashtable_t *ht, _Py_hashtable_entry_t *entry,
{
PyObject *entry_key;
- _Py_HASHTABLE_ENTRY_READ_KEY(ht->key_size, entry, entry_key);
+ _Py_HASHTABLE_ENTRY_READ_KEY(ht, entry, entry_key);
Py_XDECREF(entry_key);
return 0;
}