summaryrefslogtreecommitdiffstats
path: root/Python
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 /Python
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 'Python')
-rw-r--r--Python/marshal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index 83a1885..3be77a8 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -266,7 +266,7 @@ w_ref(PyObject *v, char *flag, WFILE *p)
entry = _Py_HASHTABLE_GET_ENTRY(p->hashtable, v);
if (entry != NULL) {
/* write the reference index to the stream */
- _Py_HASHTABLE_ENTRY_READ_DATA(p->hashtable, entry, sizeof(w), &w);
+ _Py_HASHTABLE_ENTRY_READ_DATA(p->hashtable, entry, w);
/* we don't store "long" indices in the dict */
assert(0 <= w && w <= 0x7fffffff);
w_byte(TYPE_REF, p);