summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/Python/hashtable.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tools/python3/Python/hashtable.c')
-rw-r--r--contrib/tools/python3/Python/hashtable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/tools/python3/Python/hashtable.c b/contrib/tools/python3/Python/hashtable.c
index 9f005c7ad96..faf68fe4ff0 100644
--- a/contrib/tools/python3/Python/hashtable.c
+++ b/contrib/tools/python3/Python/hashtable.c
@@ -45,7 +45,8 @@
*/
#include "Python.h"
-#include "pycore_hashtable.h"
+#include "pycore_hashtable.h" // export _Py_hashtable_new()
+#include "pycore_pyhash.h" // _Py_HashPointerRaw()
#define HASHTABLE_MIN_SIZE 16
#define HASHTABLE_HIGH 0.50
@@ -225,7 +226,6 @@ _Py_hashtable_set(_Py_hashtable_t *ht, const void *key, void *value)
assert(entry == NULL);
#endif
-
entry = ht->alloc.malloc(sizeof(_Py_hashtable_entry_t));
if (entry == NULL) {
/* memory allocation failed */