From: Christian Heimes Date: Fri, 16 May 2008 11:28:56 +0000 (+0000) Subject: Following Amaury's advice X-Git-Tag: v2.6b1~380 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca21c65a237f1fbeb6b71ad124c31e9b59a41c98;p=python Following Amaury's advice --- diff --git a/Modules/cmathmodule.c b/Modules/cmathmodule.c index 07b2f29485..109f2cc9f9 100644 --- a/Modules/cmathmodule.c +++ b/Modules/cmathmodule.c @@ -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