diff --git a/Objects/complexobject.c b/Objects/complexobject.c index ed0b8be2e2d..634a753cece 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -1003,6 +1003,7 @@ complex_new(PyTypeObject *type, PyObject *args, PyObject *kwds) return NULL; } cr.real = PyFloat_AsDouble(tmp); + cr.imag = 0.0; /* Shut up compiler warning */ Py_DECREF(tmp); } if (i == NULL) {