mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #19356: Avoid using a C variabled named "_self", it's a reserved word in some C compilers.
This commit is contained in:
commit
4d397008cd
5 changed files with 56 additions and 51 deletions
|
|
@ -816,9 +816,9 @@ element_deepcopy(ElementObject* self, PyObject* args)
|
|||
}
|
||||
|
||||
static PyObject*
|
||||
element_sizeof(PyObject* _self, PyObject* args)
|
||||
element_sizeof(PyObject* myself, PyObject* args)
|
||||
{
|
||||
ElementObject *self = (ElementObject*)_self;
|
||||
ElementObject *self = (ElementObject*)myself;
|
||||
Py_ssize_t result = sizeof(ElementObject);
|
||||
if (self->extra) {
|
||||
result += sizeof(ElementObjectExtra);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue