From: Guido van Rossum Date: Mon, 3 Dec 2007 22:02:10 +0000 (+0000) Subject: Shut up a compiler warning. X-Git-Tag: v2.6a1~947 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e227263a6c4b4f7152553d9df89175b67dfcef4a;p=python Shut up a compiler warning. --- diff --git a/Objects/complexobject.c b/Objects/complexobject.c index ed0b8be2e2..634a753cec 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) {