summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-04-25 10:11:40 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-04-25 10:11:40 (GMT)
commitde8a710849827f8e55e73d59bca41d2594a9db99 (patch)
tree9bb8a084734eb0be3b73e858522501477101b69f /Objects
parent193152c17479732f2fd9bd5d14ae4db119727bec (diff)
downloadcpython-de8a710849827f8e55e73d59bca41d2594a9db99.zip
cpython-de8a710849827f8e55e73d59bca41d2594a9db99.tar.gz
cpython-de8a710849827f8e55e73d59bca41d2594a9db99.tar.bz2
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. ........
Diffstat (limited to 'Objects')
-rw-r--r--Objects/complexobject.c2
1 files changed, 1 insertions, 1 deletions
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 @@ complex_subtype_from_string(PyTypeObject *type, PyObject *v)
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 */