]> granicus.if.org Git - python/commitdiff
Following Amaury's advice
authorChristian Heimes <christian@cheimes.de>
Fri, 16 May 2008 11:28:56 +0000 (11:28 +0000)
committerChristian Heimes <christian@cheimes.de>
Fri, 16 May 2008 11:28:56 +0000 (11:28 +0000)
Modules/cmathmodule.c

index 07b2f294855e4ca74b187bf13249819909a1bc9e..109f2cc9f9f9ff973e692764f51441bb0aaff38e 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(z)
+       PyFPE_END_PROTECT(phi)
        if (errno != 0)
                return math_error();
        else