summaryrefslogtreecommitdiff
path: root/Modules/sha512module.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2018-09-10 18:46:08 +0200
committerBenjamin Peterson <benjamin@python.org>2018-09-10 09:46:08 -0700
commit0e0bc4e221f592f305d335faf5f8046484eb9238 (patch)
treeedd0715556a68ab5bd9037a2a627bb8a62d9ef6a /Modules/sha512module.c
parentd545869d084e70d4838310e79b52a25a72a1ca56 (diff)
downloadcpython-git-0e0bc4e221f592f305d335faf5f8046484eb9238.tar.gz
Fix misleading mentions of tp_size in comments (GH-9093)
Many type object initializations labeled a field "tp_size" in the comment, but the name of that field is tp_basicsize.
Diffstat (limited to 'Modules/sha512module.c')
-rw-r--r--Modules/sha512module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/sha512module.c b/Modules/sha512module.c
index 5ac2a2a61c..d8c846a450 100644
--- a/Modules/sha512module.c
+++ b/Modules/sha512module.c
@@ -594,7 +594,7 @@ static PyMemberDef SHA_members[] = {
static PyTypeObject SHA384type = {
PyVarObject_HEAD_INIT(NULL, 0)
"_sha512.sha384", /*tp_name*/
- sizeof(SHAobject), /*tp_size*/
+ sizeof(SHAobject), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
SHA512_dealloc, /*tp_dealloc*/
@@ -628,7 +628,7 @@ static PyTypeObject SHA384type = {
static PyTypeObject SHA512type = {
PyVarObject_HEAD_INIT(NULL, 0)
"_sha512.sha512", /*tp_name*/
- sizeof(SHAobject), /*tp_size*/
+ sizeof(SHAobject), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
SHA512_dealloc, /*tp_dealloc*/