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.
........
This commit is contained in:
Mark Dickinson 2009-04-25 10:11:40 +00:00
parent 193152c174
commit de8a710849
2 changed files with 20 additions and 4 deletions

View file

@ -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 */