Merged revisions 71869 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71869 | mark.dickinson | 2009-04-25 10:47:00 +0100 (Sat, 25 Apr 2009) | 2 lines
Fix typo in complex parsing code; expand tests.
........
diff --git a/Objects/complexobject.c b/Objects/complexobject.c
index fa5ea61..37d9888 100644
--- a/Objects/complexobject.c
+++ b/Objects/complexobject.c
@@ -797,7 +797,7 @@
y = PyOS_ascii_strtod(s, &end);
if (end == s && errno == ENOMEM)
return PyErr_NoMemory();
- if (errno == ERANGE && fabs(z) >= 1.0)
+ if (errno == ERANGE && fabs(y) >= 1.0)
goto overflow;
if (end != s)
/* <float><signed-float>j */