diff Objects/complexobject.c @ 44134:e08b12c3b913

Add an errors parameter to open() and TextIOWrapper() to specify error handling.
author Guido van Rossum <guido@python.org>
date Mon, 03 Dec 2007 22:54:21 +0000
parents 530fb9852c50
children a6f9a2ba8962
line wrap: on
line diff
--- a/Objects/complexobject.c	Mon Dec 03 21:07:25 2007 +0000
+++ b/Objects/complexobject.c	Mon Dec 03 22:54:21 2007 +0000
@@ -915,6 +915,7 @@
 			return NULL;
 		}
 		cr.real = PyFloat_AsDouble(tmp);
+                cr.imag = 0.0; /* Shut up compiler warning */
 		Py_DECREF(tmp);
 	}
 	if (i == NULL) {