Fixed #2870: cmathmodule.c compile error

This commit is contained in:
Christian Heimes 2008-05-16 10:23:31 +00:00
parent 107b812947
commit 0bd23c0a98
2 changed files with 3 additions and 1 deletions

View file

@ -920,7 +920,7 @@ cmath_phase(PyObject *self, PyObject *args)
errno = 0;
PyFPE_START_PROTECT("arg function", return 0)
phi = c_atan2(z);
PyFPE_END_PROTECT(r)
PyFPE_END_PROTECT(z)
if (errno != 0)
return math_error();
else