diff options
author | Benjamin Peterson <benjamin@python.org> | 2018-09-10 17:23:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-10 17:23:03 (GMT) |
commit | 6a939c8dae225aaf088c8c37de8cc2655c83ee61 (patch) | |
tree | 662df5c54877e0aa6fc4a1bb2d569ee13cce29c1 /Modules/_blake2 | |
parent | 8a0c254fdd68cfafede168356fc5c5c3e372bc3f (diff) | |
download | cpython-6a939c8dae225aaf088c8c37de8cc2655c83ee61.zip cpython-6a939c8dae225aaf088c8c37de8cc2655c83ee61.tar.gz cpython-6a939c8dae225aaf088c8c37de8cc2655c83ee61.tar.bz2 |
[3.6] Fix misleading mentions of tp_size in comments (GH-9137)
Many type object initializations labeled a field "tp_size" in the
comment, but the name of that field is tp_basicsize..
(cherry picked from commit 0e0bc4e221f592f305d335faf5f8046484eb9238)
Co-authored-by: Peter Eisentraut <peter@eisentraut.org>
Diffstat (limited to 'Modules/_blake2')
-rw-r--r-- | Modules/_blake2/blake2b_impl.c | 2 | ||||
-rw-r--r-- | Modules/_blake2/blake2s_impl.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_blake2/blake2b_impl.c b/Modules/_blake2/blake2b_impl.c index 09b200e..9e6f72e 100644 --- a/Modules/_blake2/blake2b_impl.c +++ b/Modules/_blake2/blake2b_impl.c @@ -423,7 +423,7 @@ py_blake2b_dealloc(PyObject *self) PyTypeObject PyBlake2_BLAKE2bType = { PyVarObject_HEAD_INIT(NULL, 0) "_blake2.blake2b", /* tp_name */ - sizeof(BLAKE2bObject), /* tp_size */ + sizeof(BLAKE2bObject), /* tp_basicsize */ 0, /* tp_itemsize */ py_blake2b_dealloc, /* tp_dealloc */ 0, /* tp_print */ diff --git a/Modules/_blake2/blake2s_impl.c b/Modules/_blake2/blake2s_impl.c index 735b6f0..0743fdf 100644 --- a/Modules/_blake2/blake2s_impl.c +++ b/Modules/_blake2/blake2s_impl.c @@ -423,7 +423,7 @@ py_blake2s_dealloc(PyObject *self) PyTypeObject PyBlake2_BLAKE2sType = { PyVarObject_HEAD_INIT(NULL, 0) "_blake2.blake2s", /* tp_name */ - sizeof(BLAKE2sObject), /* tp_size */ + sizeof(BLAKE2sObject), /* tp_basicsize */ 0, /* tp_itemsize */ py_blake2s_dealloc, /* tp_dealloc */ 0, /* tp_print */ |