summaryrefslogtreecommitdiffstats
path: root/Modules/_tracemalloc.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-23 08:25:01 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-23 08:25:01 (GMT)
commite8c6b2fd1bb75c6a3865745de30f26e235d3f12f (patch)
treea7687e057d730dfb732aaf145fad35025172a3cf /Modules/_tracemalloc.c
parent42bcf37fcffa65592e401c43aa8c0190452b28b0 (diff)
downloadcpython-e8c6b2fd1bb75c6a3865745de30f26e235d3f12f.zip
cpython-e8c6b2fd1bb75c6a3865745de30f26e235d3f12f.tar.gz
cpython-e8c6b2fd1bb75c6a3865745de30f26e235d3f12f.tar.bz2
Issue #26588:
* _Py_HASHTABLE_ENTRY_DATA: change type from "char *" to "const void *" * Add _Py_HASHTABLE_ENTRY_WRITE_PKEY() macro * Rename _Py_HASHTABLE_ENTRY_WRITE_DATA() macro to _Py_HASHTABLE_ENTRY_WRITE_PDATA() * Add _Py_HASHTABLE_ENTRY_WRITE_DATA() macro
Diffstat (limited to 'Modules/_tracemalloc.c')
-rw-r--r--Modules/_tracemalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c
index 139b169..0bab540 100644
--- a/Modules/_tracemalloc.c
+++ b/Modules/_tracemalloc.c
@@ -1263,7 +1263,7 @@ tracemalloc_pyobject_decref_cb(_Py_hashtable_t *tracebacks,
void *user_data)
{
PyObject *obj;
- _Py_HASHTABLE_ENTRY_READ_DATA(tracebacks, entry, sizeof(obj), &obj);
+ _Py_HASHTABLE_ENTRY_READ_DATA(tracebacks, entry, obj);
Py_DECREF(obj);
return 0;
}