Shut up a compiler warning.

This commit is contained in:
Guido van Rossum 2007-12-03 22:02:10 +00:00
parent 6e751f4ffa
commit e227263a6c
1 changed files with 1 additions and 0 deletions

View File

@ -1003,6 +1003,7 @@ complex_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
return NULL; return NULL;
} }
cr.real = PyFloat_AsDouble(tmp); cr.real = PyFloat_AsDouble(tmp);
cr.imag = 0.0; /* Shut up compiler warning */
Py_DECREF(tmp); Py_DECREF(tmp);
} }
if (i == NULL) { if (i == NULL) {