Fixed #2870: cmathmodule.c compile error
diff --git a/Misc/NEWS b/Misc/NEWS
index ea4ba1a..116e4b9 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -34,6 +34,8 @@
- bsddb module updated to version 4.6.4.
+- Fixed #2870: cmathmodule.c compile error
+
Library
-------
diff --git a/Modules/cmathmodule.c b/Modules/cmathmodule.c
index d6d1f27..07b2f29 100644
--- a/Modules/cmathmodule.c
+++ b/Modules/cmathmodule.c
@@ -920,7 +920,7 @@
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