summaryrefslogtreecommitdiffstats
path: root/Modules/mathmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-03-14 04:32:50 (GMT)
committerGuido van Rossum <guido@python.org>1997-03-14 04:32:50 (GMT)
commit45b83915f8d5974045d374c981531d9b98570df1 (patch)
treef7212bc9be87ae8c5464633e0701cbf9a2f15b15 /Modules/mathmodule.c
parent1aeb1047baa41af14e720f74f30d288417f1122e (diff)
downloadcpython-45b83915f8d5974045d374c981531d9b98570df1.zip
cpython-45b83915f8d5974045d374c981531d9b98570df1.tar.gz
cpython-45b83915f8d5974045d374c981531d9b98570df1.tar.bz2
New form of PyFPE_END_PROTECT macro.
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r--Modules/mathmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index bb4f1e8..0df3843 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -82,7 +82,7 @@ math_1(args, func)
errno = 0;
PyFPE_START_PROTECT("in math_1", return 0)
x = (*func)(x);
- PyFPE_END_PROTECT
+ PyFPE_END_PROTECT(x)
CHECK(x);
if (errno != 0)
return math_error();
@@ -101,7 +101,7 @@ math_2(args, func)
errno = 0;
PyFPE_START_PROTECT("in math_2", return 0)
x = (*func)(x, y);
- PyFPE_END_PROTECT
+ PyFPE_END_PROTECT(x)
CHECK(x);
if (errno != 0)
return math_error();
@@ -179,7 +179,7 @@ math_ldexp(self, args)
errno = 0;
PyFPE_START_PROTECT("ldexp", return 0)
x = ldexp(x, (int)y);
- PyFPE_END_PROTECT
+ PyFPE_END_PROTECT(x)
CHECK(x);
if (errno != 0)
return math_error();