diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-10-23 17:20:21 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-10-23 17:20:21 (GMT) |
commit | 09fcb72048be60435ae70ec2c3e23e2325edb421 (patch) | |
tree | ee7c279b7b77ff5d58f831b37fb517f28d65398a /Modules/_elementtree.c | |
parent | d5d0bc35adc6c043d5985152451505e70d869341 (diff) | |
download | cpython-09fcb72048be60435ae70ec2c3e23e2325edb421.zip cpython-09fcb72048be60435ae70ec2c3e23e2325edb421.tar.gz cpython-09fcb72048be60435ae70ec2c3e23e2325edb421.tar.bz2 |
Issue #19356: Avoid using a C variabled named "_self", it's a reserved word in some C compilers.
Diffstat (limited to 'Modules/_elementtree.c')
-rw-r--r-- | Modules/_elementtree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c index 57503d5..9bdc4c7 100644 --- a/Modules/_elementtree.c +++ b/Modules/_elementtree.c @@ -809,9 +809,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); |