diff Objects/complexobject.c @ 44132:aeefb897384f legacy-trunk

Shut up a compiler warning.
author Guido van Rossum <guido@python.org>
date Mon, 03 Dec 2007 22:02:10 +0000
parents 60e6eaa378d9
children 4f9723d9ca32
line wrap: on
line diff
--- a/Objects/complexobject.c	Mon Dec 03 21:28:41 2007 +0000
+++ b/Objects/complexobject.c	Mon Dec 03 22:02:10 2007 +0000
@@ -1003,6 +1003,7 @@
 			return NULL;
 		}
 		cr.real = PyFloat_AsDouble(tmp);
+                cr.imag = 0.0; /* Shut up compiler warning */
 		Py_DECREF(tmp);
 	}
 	if (i == NULL) {