summaryrefslogtreecommitdiffstats
path: root/Objects/complexobject.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-04-25 09:47:00 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-04-25 09:47:00 (GMT)
commit0a6501bf56f559d9319baecb4e99732bd1b41908 (patch)
tree3c96c71c1f1de919e18f6b717216af1876c49b5d /Objects/complexobject.c
parent5083dc552b4e7026c2f405b37d7691131bc96955 (diff)
downloadcpython-0a6501bf56f559d9319baecb4e99732bd1b41908.zip
cpython-0a6501bf56f559d9319baecb4e99732bd1b41908.tar.gz
cpython-0a6501bf56f559d9319baecb4e99732bd1b41908.tar.bz2
Fix typo in complex parsing code; expand tests.
Diffstat (limited to 'Objects/complexobject.c')
-rw-r--r--Objects/complexobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c
index 7ebafa7..d1e9e92 100644
--- a/Objects/complexobject.c
+++ b/Objects/complexobject.c
@@ -962,7 +962,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 */