summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-12-03 22:02:10 (GMT)
committerGuido van Rossum <guido@python.org>2007-12-03 22:02:10 (GMT)
commite227263a6c4b4f7152553d9df89175b67dfcef4a (patch)
tree1288d5267690653befd5af24cd2305c22aeaf067 /Objects
parent6e751f4ffa9ec646ddcc3f699a18233262912ca2 (diff)
downloadcpython-e227263a6c4b4f7152553d9df89175b67dfcef4a.zip
cpython-e227263a6c4b4f7152553d9df89175b67dfcef4a.tar.gz
cpython-e227263a6c4b4f7152553d9df89175b67dfcef4a.tar.bz2
Shut up a compiler warning.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/complexobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c
index ed0b8be..634a753 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) {