Kaydet (Commit) 0bd23c0a authored tarafından Christian Heimes's avatar Christian Heimes

Fixed #2870: cmathmodule.c compile error

üst 107b8129
...@@ -34,6 +34,8 @@ Extension Modules ...@@ -34,6 +34,8 @@ Extension Modules
- bsddb module updated to version 4.6.4. - bsddb module updated to version 4.6.4.
- Fixed #2870: cmathmodule.c compile error
Library Library
------- -------
......
...@@ -920,7 +920,7 @@ cmath_phase(PyObject *self, PyObject *args) ...@@ -920,7 +920,7 @@ cmath_phase(PyObject *self, PyObject *args)
errno = 0; errno = 0;
PyFPE_START_PROTECT("arg function", return 0) PyFPE_START_PROTECT("arg function", return 0)
phi = c_atan2(z); phi = c_atan2(z);
PyFPE_END_PROTECT(r) PyFPE_END_PROTECT(z)
if (errno != 0) if (errno != 0)
return math_error(); return math_error();
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment