]> granicus.if.org Git - python/commitdiff
Shut up a compiler warning.
authorGuido van Rossum <guido@python.org>
Mon, 3 Dec 2007 22:02:10 +0000 (22:02 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 3 Dec 2007 22:02:10 +0000 (22:02 +0000)
Objects/complexobject.c

index ed0b8be2e2d766c3c7d8834b4f047f18f27effca..634a753cece2e565575f10af18f37a32d51f14d6 100644 (file)
@@ -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) {