summaryrefslogtreecommitdiffstats
path: root/Modules/_struct.c
diff options
context:
space:
mode:
authorEddie Elizondo <eelizondo@fb.com>2019-09-19 16:29:05 (GMT)
committerDino Viehland <dinoviehland@gmail.com>2019-09-19 16:29:05 (GMT)
commit3368f3c6ae4140a0883e19350e672fd09c9db616 (patch)
tree0b4477fdd89aefa2b9d17e6a16c3f172f32a5660 /Modules/_struct.c
parent079931d12223ec98cbf53185b90db48efa61f93f (diff)
downloadcpython-3368f3c6ae4140a0883e19350e672fd09c9db616.zip
cpython-3368f3c6ae4140a0883e19350e672fd09c9db616.tar.gz
cpython-3368f3c6ae4140a0883e19350e672fd09c9db616.tar.bz2
bpo-38140: Make dict and weakref offsets opaque for C heap types (#16076)
* Make dict and weakref offsets opaque for C heap types * Add news
Diffstat (limited to 'Modules/_struct.c')
-rw-r--r--Modules/_struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c
index c387ae2..cc536b4 100644
--- a/Modules/_struct.c
+++ b/Modules/_struct.c
@@ -2024,7 +2024,7 @@ static struct PyMethodDef s_methods[] = {
};
static PyMemberDef s_members[] = {
- {"__weaklistoffset__", T_NONE, offsetof(PyStructObject, weakreflist), READONLY},
+ {"__weaklistoffset__", T_PYSSIZET, offsetof(PyStructObject, weakreflist), READONLY},
{NULL} /* sentinel */
};