Make new gcc -Wall happy

This commit is contained in:
Guido van Rossum 1998-04-10 22:27:42 +00:00
parent 1109fbca76
commit 730806d3d9
11 changed files with 45 additions and 23 deletions

View file

@ -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);