]> granicus.if.org Git - python/commitdiff
Fixed #2870: cmathmodule.c compile error
authorChristian Heimes <christian@cheimes.de>
Fri, 16 May 2008 10:23:31 +0000 (10:23 +0000)
committerChristian Heimes <christian@cheimes.de>
Fri, 16 May 2008 10:23:31 +0000 (10:23 +0000)
Misc/NEWS
Modules/cmathmodule.c

index ea4ba1ad6d5905fb5fb610756c3419032eb5277a..116e4b9465c319d763fa50fbb5a73cde12b2d025 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -34,6 +34,8 @@ Extension Modules
 
 - bsddb module updated to version 4.6.4.
 
+- Fixed #2870: cmathmodule.c compile error
+
 Library
 -------
 
index d6d1f27cb0944e43c4a2434d9fee07647cb3588b..07b2f294855e4ca74b187bf13249819909a1bc9e 100644 (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