diff options
| author | Peter Eisentraut <peter@eisentraut.org> | 2018-09-10 18:46:08 +0200 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2018-09-10 09:46:08 -0700 |
| commit | 0e0bc4e221f592f305d335faf5f8046484eb9238 (patch) | |
| tree | edd0715556a68ab5bd9037a2a627bb8a62d9ef6a /Modules/sha256module.c | |
| parent | d545869d084e70d4838310e79b52a25a72a1ca56 (diff) | |
| download | cpython-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/sha256module.c')
| -rw-r--r-- | Modules/sha256module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/sha256module.c b/Modules/sha256module.c index e4cb3286ce..3599eaf8be 100644 --- a/Modules/sha256module.c +++ b/Modules/sha256module.c @@ -529,7 +529,7 @@ static PyMemberDef SHA_members[] = { static PyTypeObject SHA224type = { PyVarObject_HEAD_INIT(NULL, 0) "_sha256.sha224", /*tp_name*/ - sizeof(SHAobject), /*tp_size*/ + sizeof(SHAobject), /*tp_basicsize*/ 0, /*tp_itemsize*/ /* methods */ SHA_dealloc, /*tp_dealloc*/ @@ -563,7 +563,7 @@ static PyTypeObject SHA224type = { static PyTypeObject SHA256type = { PyVarObject_HEAD_INIT(NULL, 0) "_sha256.sha256", /*tp_name*/ - sizeof(SHAobject), /*tp_size*/ + sizeof(SHAobject), /*tp_basicsize*/ 0, /*tp_itemsize*/ /* methods */ SHA_dealloc, /*tp_dealloc*/ |
