diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-23 09:25:01 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-23 09:25:01 +0100 |
commit | e8c6b2fd1bb75c6a3865745de30f26e235d3f12f (patch) | |
tree | a7687e057d730dfb732aaf145fad35025172a3cf /Modules/_tracemalloc.c | |
parent | Issue #26588: Optimize tracemalloc_realloc() (diff) | |
download | cpython-e8c6b2fd1bb75c6a3865745de30f26e235d3f12f.tar.gz cpython-e8c6b2fd1bb75c6a3865745de30f26e235d3f12f.tar.bz2 cpython-e8c6b2fd1bb75c6a3865745de30f26e235d3f12f.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c index 139b16963c9..0bab540ee1a 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; } |