mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Make new gcc -Wall happy
This commit is contained in:
parent
1109fbca76
commit
730806d3d9
11 changed files with 45 additions and 23 deletions
|
@ -348,13 +348,15 @@ builtin_complex(self, args)
|
|||
}
|
||||
if (PyComplex_Check(r)) {
|
||||
cr = ((PyComplexObject*)r)->cval;
|
||||
if (own_r)
|
||||
if (own_r) {
|
||||
Py_DECREF(r);
|
||||
}
|
||||
}
|
||||
else {
|
||||
tmp = (*nbr->nb_float)(r);
|
||||
if (own_r)
|
||||
if (own_r) {
|
||||
Py_DECREF(r);
|
||||
}
|
||||
if (tmp == NULL)
|
||||
return NULL;
|
||||
cr.real = PyFloat_AsDouble(tmp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue